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