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