new CollisionGroup()
This component groups other entities with this entity for collision checking. This is useful for carrying and moving platforms. It uses EntityContainer
component messages if triggered to add to its collision list and also listens for explicit add/remove messages (useful in the absence of an EntityContainer
component).
- Source:
Listens to Events:
Methods
getCollisionGroupAABB()
Gets the bounding box of the group of entities.
- Source:
Returns:
platypus.AABB
getWorldEntities()
Gets a list of all the entities in the world.
- Source:
Returns:
Array
getWorldTerrain()
Gets the collision entity representing the world's terrain.
- Source:
Returns:
platypus.Entity