self:add_collision_exception_with
Client
Adds another physics body to this vehicle body's collision exception list so the two no longer collide with each other
Syntax
local status = self:add_collision_exception_with(
body
)Parameters
| Type | Name | Description |
|---|---|---|
object | body | Physics body instance to exclude from collision — must be the same physics type as this instance |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local a = physics.vehicle.create()
local b = physics.vehicle.create()
a:add_collision_exception_with(b)