![]() |
Rune Engine
Version 0.2.7-alpha
Documentation for how to make games using the Rune Engine.
|
A collider that is to be used for registering collisions between objects in the scene. More...
#include <collider.h>


Public Member Functions | |
| Collider () | |
| Default empty constructor to make a new collider. | |
| virtual AABB | computeAABB (void)=0 |
| Computes the appropriate physics::AABB that should be given to the collider. | |
Public Member Functions inherited from rune::Subject | |
| void | subscribe (Observer &newObserver) |
| Tell the subject that an observer would like to be notified of signals. More... | |
| bool | unsubscribe (Observer &newObserver) |
| Tell the subject that an observer would no longer like to be notified of signals. More... | |
Protected Attributes | |
| AABB | boundingBox |
| The axis aligned bounding box that surrounds the collider. | |
| rune::Vec2 | offset |
| The amount of offset from the center of the AABB that should be applied. | |
Protected Attributes inherited from rune::Subject | |
| std::vector< Observer * > | observers |
| List of observers currently subscribed to this object. | |
Additional Inherited Members | |
Protected Member Functions inherited from rune::Subject | |
| void | sendSignal (Signal) |
| Send a signal to all observers. More... | |
| int | getNumObservers (void) |
| Get the number of observers subscribed to this subject. More... | |
A collider that is to be used for registering collisions between objects in the scene.