Skip to main content

Rigidbody.AddTorque(Vector3 torque, ForceMode mode = ForceMode.Force)

Adds a torque to the rigidbody.

Parameters:

NameTypeDescription
torqueVector3Torque vector in world coordinates.
modeForceMode

Usage

---@type Rigidbody
local rigidbody;

---@type Vector3
local torque;

---@type ForceMode
local mode;


rigidbody.AddTorque(torque, mode)