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

TypeNameDescription
vector3pointContact point as {x, y, z}

Examples

Get the contact point of a vehicle wheel
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))

On this page