self:get_global_scale
Client
Retrieves the global scale of the collision shape
Syntax
local scale = self:get_global_scale()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
vector3 | scale | Current global scale as {x, y, z} |
Examples
local entity = physics.collision_shape.create()
local scale = entity:get_global_scale()
core.engine.print("info", "Collision shape scale:", util.table.unpack(scale))