self:translate_local

Client

Translates the collision shape by an offset in its own local coordinate space


Syntax

local status = self:translate_local(
    offset
)

Parameters

TypeNameDescription
vector3offsetOffset to translate by as {x, y, z}

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Translate a collision shape locally
local entity = physics.collision_shape.create()

entity:translate_local({0, 0, -1})

On this page