self:set_steering
Client
Sets the whole-chassis steering angle of the vehicle body
Syntax
local status = self:set_steering(
steering
)Parameters
| Type | Name | Description |
|---|---|---|
float | steering | Steering angle to apply across the whole chassis |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = physics.vehicle.create()
entity:set_steering(0.3)