Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Register

Ease to rotation

I had actually had this in SB3, for how the ship turns and all, but I actually just learned how nobody, and NOBODY, used it’s logic.

Basically, here’s how it works, and I’ll see if I can’t replicate it for reuse in other games.

When using ease on rotation normally:
Say the current rotation is 0, and it’s being eased into 270. It’s going to turn clockwise until it’s 270, when all it really has to do is turn 90 degrees counterclockwise. And the same applies going back

When using the rig in SB3:
It’s been quite a while when I made this rig, so I don’t quite remember how it works. However it fixes this-

Say the ship is at 0, and you want to go to 270, since the difference between the two is GREATER than 180, instead of turning clockwise, it actually adds 360 to 0, so it goes from 360 to 270, which causes it to turn counterclockwise 90 degrees instead. And this applies to all directions, 0, 45, 315, you name it.


Sign In or Register to comment.

| make games in your browser
@ 2017, All rights reserved.

Contact us

Get In Touch