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