Skip to main content

Rigidbody.MoveRotation(Quaternion rot)

Rotates the rigidbody to rotation.

Parameters:

NameTypeDescription
rotQuaternionThe new rotation for the Rigidbody.

Usage

---@type Rigidbody
local rigidbody;

---@type Quaternion
local rot;


rigidbody.MoveRotation(rot)