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
| Type | Name | Description |
|---|---|---|
float | value | Current RPM |
Examples
local car = physics.vehicle.create()
local entity = physics.vehicle_wheel.create(car)
core.engine.print("info", "Vehicle wheel rpm:", entity:get_rpm())