self:scale_global
Client
Scales the collision shape in the global coordinate space
Syntax
local status = self:scale_global(
scale
)Parameters
| Type | Name | Description |
|---|---|---|
vector3 | scale | Scale factor to apply as {x, y, z} |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = physics.collision_shape.create()
entity:scale_global({2, 2, 2})