self:set_radius
Client
Sets the radius of the wheel
Syntax
local status = self:set_radius(
radius
)Parameters
| Type | Name | Description |
|---|---|---|
float | radius | Wheel radius 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_radius(0.4)