RigidbodySynchronizablerotation Property
The rotation of the Rigidbody.
Namespace: AlterunaAssembly: Alteruna.Trinity (in Alteruna.Trinity.dll) Version: 1.3.4
public Quaternion rotation { get; set; }
Property Value
Quaternion
Use Rigidbody.rotation to get and set the rotation of a Rigidbody using the physics engine.
Changing the rotation of a Rigidbody using Rigidbody.rotation updates the Transform after the next physics simulation step. This is faster than updating the rotation using Transform.rotation, as Transform.rotation causes all attached Colliders to recalculate their rotation relative to the Rigidbody, whereas Rigidbody.rotation sets the values directly to the physics system.
If you want to continuously rotate a rigidbody use MoveRotation instead, which takes interpolation into account.