This struct represents a collider. More...
#include <colliders.h>
Public Attributes | |
| SDL_Rect | hitbox |
| The hitbox of the collider. | |
| CollisionLayer | layer |
| What layer this object belongs to. | |
| CollisionLayer | collidesWith |
| Bitmask of layers this can collide with. | |
| void * | owner |
| Pointer back to the entity. | |
| bool | active |
| Is this collidable active? | |
This struct represents a collider.
A collider is a hitbox that can be used to detect collisions between objects. It is used to detect collisions between entities in the game.
| bool Collider::active |
Is this collidable active?
| CollisionLayer Collider::collidesWith |
Bitmask of layers this can collide with.
| SDL_Rect Collider::hitbox |
The hitbox of the collider.
| CollisionLayer Collider::layer |
What layer this object belongs to.
| void* Collider::owner |
Pointer back to the entity.