self:translate_local
Client
Translates the rigid body by an offset in its own local coordinate space
Syntax
local status = self:translate_local(
offset
)Parameters
| Type | Name | Description |
|---|---|---|
vector3 | offset | Offset to translate by as {x, y, z} |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = physics.rigid.create()
entity:translate_local({0, 0, -1})