[DiscordArchive] like dividing it by 2 * pi?
[DiscordArchive] like dividing it by 2 * pi?
Archived author: Telegrill • Posted: 2024-04-06T19:46:12.056000+00:00
Original source
like dividing it by 2 * pi?
Archived author: Tea • Posted: 2024-04-06T19:47:13.117000+00:00
Original source
o - pi
Archived author: Telegrill • Posted: 2024-04-06T19:53:07.098000+00:00
Original source
oh thanks
Archived author: Northstrider • Posted: 2024-04-06T19:53:45.906000+00:00
Original source
in code you wanna use Position::NormalizeOrientation(GetOrientation() + static_cast<float>(M_PI));
Archived author: Telegrill • Posted: 2024-04-06T19:54:14.193000+00:00
Original source
is it not normalized on its own? ugh
Archived author: Northstrider • Posted: 2024-04-06T19:54:57.826000+00:00
Original source
no. if you retrieve the orientation and you slap PI into it, it's not automatically normalized
Archived author: Telegrill • Posted: 2024-04-06T19:54:58.964000+00:00
Original source
why a static_cast though and not plain <float>
Archived author: Northstrider • Posted: 2024-04-06T19:55:09.968000+00:00
Original source
because we use C++ and not C
Archived author: Telegrill • Posted: 2024-04-06T19:58:11.244000+00:00
Original source
I think I'd plainly use GetOrientation() - float(M_PI)
Archived author: Telegrill • Posted: 2024-04-06T19:58:13.190000+00:00
Original source
<:fry:770403425107443722>