RigidbodySynchronizablerotation Property
The rotation of the Rigidbody.
Namespace: Alteruna.MultiplayerAssembly: Alteruna (in Alteruna.dll) Version: 2.0.2+dcdb8fba58ad1eb99205b1dc6265fd5b3b7cf8ec
public Quaternion rotation { get; set; }
Property Value
Quaternion Use RigidbodySynchronizable.rotation to get and set the rotation of a Rigidbody using the physics engine.
Changing the rotation of a Rigidbody using RigidbodySynchronizable.rotation updates the Transform after the next physics simulation step and sync it immediately to other clients.
This is faster than updating the rotation using Transform.rotation, as the latter will not trigger a sync packet and 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.