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