Rune Engine  Version 0.2.7-alpha
Documentation for how to make games using the Rune Engine.
physics::Collider Class Referenceabstract

A collider that is to be used for registering collisions between objects in the scene. More...

#include <collider.h>

Inheritance diagram for physics::Collider:
Collaboration diagram for physics::Collider:

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...
 

Detailed Description

A collider that is to be used for registering collisions between objects in the scene.

Author
Thomas Montano
Date
June 9 2020

The documentation for this class was generated from the following files: