self:get_radius

Client

Retrieves the radius of the wheel


Syntax

local value = self:get_radius()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
floatvalueCurrent wheel radius

Examples

Get the radius of a vehicle wheel
local car = physics.vehicle.create()
local entity = physics.vehicle_wheel.create(car)

core.engine.print("info", "Vehicle wheel radius:", entity:get_radius())

On this page