CollisionBasic

platypus.components. CollisionBasic

new CollisionBasic()

This component causes this entity to collide with other entities. It must be part of a collision group and will receive messages when colliding with other entities in the collision group.

Multiple collision components may be added to a single entity if distinct messages should be triggered for certain collision areas on the entity or if the soft collision area is a different shape from the solid collision area. Be aware that too many additional collision areas may adversely affect performance.

On receiving a 'hit-by' message, custom messages may be triggered on the entity corresponding with the component's solidCollisions and softCollisions key/value mappings.

Source:
Fires:
Listens to Events: