layer property

int layer
final

Bitmask of layers this entity belongs to.

Use CollisionLayers constants or game-specific layers: GameLayers.player | GameLayers.enemy

Implementation

final int layer;