self:get_rpm

Client

Retrieves the current rotational speed of the wheel in revolutions per minute


Syntax

local value = self:get_rpm()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
floatvalueCurrent RPM

Examples

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

core.engine.print("info", "Vehicle wheel rpm:", entity:get_rpm())

On this page