self:set_damping_relaxation
Client
Sets the suspension relaxation damping of the wheel
Syntax
local status = self:set_damping_relaxation(
damping
)Parameters
| Type | Name | Description |
|---|---|---|
float | damping | Relaxation damping to apply |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local car = physics.vehicle.create()
local entity = physics.vehicle_wheel.create(car)
entity:set_damping_relaxation(0.88)