self:destroy
Client
Destroys the vehicle wheel instance and removes it from the scene
Syntax
local status = self:destroy()Parameters
| No parameters are accepted by this function |
|---|
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:destroy()