Rigidbody.MoveRotation(Quaternion rot)
Rotates the rigidbody to rotation.
Parameters:
Name | Type | Description |
---|---|---|
rot | Quaternion | The new rotation for the Rigidbody. |
Usage
---@type Rigidbody
local rigidbody;
---@type Quaternion
local rot;
rigidbody.MoveRotation(rot)