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