self:get_suspension_rest_length
Client
Retrieves the suspension's resting length of the wheel
Syntax
local value = self:get_suspension_rest_length()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
float | value | Current suspension rest length |
Examples
local car = physics.vehicle.create()
local entity = physics.vehicle_wheel.create(car)
core.engine.print("info", "Vehicle wheel suspension rest length:", entity:get_suspension_rest_length())