self:set_collision_mask
Client
Sets the collision mask bitmask of the rigid body
Syntax
local status = self:set_collision_mask(
mask
)Parameters
| Type | Name | Description |
|---|---|---|
int | mask | Collision mask bitmask to apply |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = physics.rigid.create()
entity:set_collision_mask(1)