• ✨ ARCHIVE MODE ✨
    The forum has now been set to read-only mode, no new posts, resources, replies etc will not be possible.
    We recommend you join our Discord server to get real-time response: Discord Invite Link

Fixed Some bugs in 0_19_1

Status
Not open for further replies.

DracoHouston

Kolben Developer
Contributor
add or subtract 90 degrees depending on what direction you wanna turn and if the value goes beyond a complete turn it wraps around (0+((rotation+turnamount)-a full circle) and if it goes under 0 it has to wrap around to a full circle to keep going
If it would be that simple...there are some other things going on (also with the Free Camera Mode where you cannot just substract a few degrees.). Also, the game swaps from 2 * PI to 0 at some points. That's the real problem.
its writen a lot like if you were going to clamp rotation to 0 and 2PI, but instead of throwing the remainder away you add it to the clamped value to wrap it around
 
Status
Not open for further replies.
Top