- Normalise the acceleration vector
- Take the cross-product of the world up vector and that normalized acceleration vector to find a nice axis to tilt around
- Scale how far we tilt by the acceleration vector's length
- Normalise the acceleration vector
- Take the cross-product of the world up vector and that normalized acceleration vector to find a nice axis to tilt around
- Scale how far we tilt by the acceleration vector's length
- Compare the current position to previous position to find the current velocity
- Keep a smoothed average of the recent velocity
- Compare the current velocity to the average velocity to find an approximation of the acceleration
- Tilt the carriage based on that acceleration
- Compare the current position to previous position to find the current velocity
- Keep a smoothed average of the recent velocity
- Compare the current velocity to the average velocity to find an approximation of the acceleration
- Tilt the carriage based on that acceleration
www.youtube.com/watch?v=9cQl...
www.youtube.com/watch?v=9cQl...