self:set_constant_force
Client
Overwrites the rigid body's persistent constant force
Syntax
local status = self:set_constant_force(
force
)Parameters
| Type | Name | Description |
|---|---|---|
vector3 | force | Force vector to set as {x, y, z} |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = physics.rigid.create()
entity:set_constant_force({0, 0, 0})