self:to_local
Client
Converts a world-space point into the static body's local coordinate space
Syntax
local local_point = self:to_local(
global_point
)Parameters
| Type | Name | Description |
|---|---|---|
vector3 | global_point | World-space point to convert as {x, y, z} |
Returns
| Type | Name | Description |
|---|---|---|
vector3 | local_point | Converted point in local space as {x, y, z} |
Examples
local entity = physics.static.create()
core.engine.print("info", entity:to_local({0, 0, 0}))