component.collidablecomponent

Makes an entity able to collide with other entities.

struct CollidableComponent;

Makes an entity able to collide with other entities.

An entity with CollidableComponent collides with anything that has a volume, regardless of whether it has its own CollidableComponent or not.

this(ref Node yaml);

Construct an axis aligned bounding box from a rectangle.

pure nothrow @property Entity*[] colliders();

Get IDs of all entities that collided with this entity last CollisionSystem update.

pure nothrow @property void colliders(Entity*[] rhs);

Set colliders of this entity.

const pure nothrow @property bool hasColliders();

Did this entity collide with anything last CollisionSystem update?