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