Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CAO/SAO: Nicer velocity-controlled, interpolated rotation #6686

Closed
wants to merge 1 commit into from

Conversation

SmallJoker
Copy link
Member

Object property: automatic_face_movement_max_rotation_per_sec

This PR will always rotate the entity towards the shorter angle, which results in a nicer animation.
Before: Rotation from 350° to 0° will pass the angles 270°, 180°, 90° and these in between.
After: Rotation from 350° to 0° will pass 355° and reach 0° (or 360°) directly

Demo branch of boost_cart using these rotation properties:
https://github.com/SmallJoker/boost_cart/tree/rotationtest
Instructions: Build a closed-loop railway, go to 2nd or 3rd person view and look out what happens when turning.

Property: automatic_face_movement_max_rotation_per_sec
Rotate towards the smaller angle
@ThomasMonroe314
Copy link
Contributor

Nice work, I'll test if I can.

@paramat paramat added the Bugfix 🐛 PRs that fix a bug label Nov 27, 2017
@paramat
Copy link
Contributor

paramat commented Nov 30, 2017

👍

@paramat
Copy link
Contributor

paramat commented Dec 1, 2017

089f594

@paramat paramat closed this Dec 1, 2017
@SmallJoker SmallJoker deleted the rotate_around branch December 14, 2017 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants