self:set_collision_layer
Client
Sets the collision layer bitmask of the animatable 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.animatable.create()
entity:set_collision_layer(1)