Rigidbody.AddRelativeTorque(Vector3 torque, ForceMode mode = ForceMode.Force)
Adds a torque to the rigidbody relative to its coordinate system.
Parameters:
Name | Type | Description |
---|---|---|
torque | Vector3 | Torque vector in local coordinates. |
mode | ForceMode |
Usage
---@type Rigidbody
local rigidbody;
---@type Vector3
local torque;
---@type ForceMode
local mode;
rigidbody.AddRelativeTorque(torque, mode)