 |
Rune Engine
Version 0.2.7-alpha
Documentation for how to make games using the Rune Engine.
|
12 #include <Entities/component.h>
13 #include <Math/vec2.h>
14 #include <Physics/AABB.h>
15 #include <Renderer/rectangleShape.h>
16 #include <Events/subject.h>
18 #ifndef COLLIDER_H_DEFINED
19 #define COLLIDER_H_DEFINED
A collider that is to be used for registering collisions between objects in the scene.
Definition: collider.h:24
The physics module responsible for handling and resolving collisions between physics::Collider2D.
Definition: AABB.h:7
virtual AABB computeAABB(void)=0
Computes the appropriate physics::AABB that should be given to the collider.
A subject that can be watched for signals by observers.
Definition: subject.h:21
rune::Vec2 offset
The amount of offset from the center of the AABB that should be applied.
Definition: collider.h:29
AABB boundingBox
The axis aligned bounding box that surrounds the collider.
Definition: collider.h:27
1 x 2 vector to be used for math.
Definition: vec2.h:20
Axis aligned bounding box for each object.
Definition: AABB.h:10