self:destroy
Client
Destroys the rigid body 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 entity = physics.rigid.create()
entity:destroy()