self:set_suspension_stiffness
Client
Sets the suspension stiffness of the wheel
Syntax
local status = self:set_suspension_stiffness(
stiffness
)Parameters
| Type | Name | Description |
|---|---|---|
float | stiffness | Suspension stiffness 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_suspension_stiffness(20)