self:get_contact_point
Client
Retrieves the world-space point where the wheel is touching the ground
Syntax
local point = self:get_contact_point()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
vector3 | point | Contact point as {x, y, z} |
Examples
local car = physics.vehicle.create()
local entity = physics.vehicle_wheel.create(car)
local point = entity:get_contact_point()
core.engine.print("info", "Vehicle wheel point:", util.table.unpack(point))