Ease Rotate RigidBody2D toward arbitrary angle
- by Plastic Sturgeon
I'm trying to make a rigidbody2D circle return to an orientation after a collision. But there is a weird behavior I do not expect - it always orients to the same direction.
This is what I call in FixedUpdate():
rotationdifference = -halfPI + rigidbody2D.rotation;
rigidbody2D.AddTorque (rotationdifference * ease);
I would expect this would…