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