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