self:get_global_position
Client
Retrieves the global position of the animatable body
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.animatable.create()
local position = entity:get_global_position()
core.engine.print("info", "Animatable body position:", util.table.unpack(position))