Collision Shape

self:scale_local

Shared

Scales the collision shape in its own local coordinate space

Syntax

local status = self:scale_local(
    scale
)

Parameters

TypeNameDescription
vector3scaleScale factor to apply as {x, y, z}

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

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

entity:scale_local({2, 2, 2})

On this page