Responsible for Collision functions. More...
#include <Collidable.h>
Protected Member Functions | |
void | SubmitRegistration () |
Called when wanting to check for collisions. | |
void | SubmitDeregistration () |
Called when wanting to stop checking for collisions. | |
void | SetColliderModel (Model *mod) |
Stores an Objects Collision Model for calculating collisions. | |
void | UpdateCollisionData (const Matrix &mat) |
Updates Objects Collision Model for proper scaling and positioning. | |
template<typename C> | |
void | SetCollidableGroup () |
Registers a DemoObject to be part of a Collision Group. | |
Private Member Functions | |
const CollisionVolumeBSphere & | GetBSphere () |
Retrieves the Collider Model's BSphere. | |
Responsible for Collision functions.
Collisions are reliant on Game Objects having their own Collision Functions to call to.
Example:
SceneDemo.h
SceneDemo.cpp
DemoObjOne.h
DemoObjOne.cpp
DemoObjTwo.h
DemoObjTwo.cpp
|
private |
Retrieves the Collider Model's BSphere.
This will mainly be used when needing to visualize an object's BSphere.
Example:
|
protected |
Registers a DemoObject to be part of a Collision Group.
The have any collision testing, an object must be registered for a Collidable Group.
Example:
C |
|
protected |
Stores an Objects Collision Model for calculating collisions.
This will normally be either the graphics object currently in use, or a low poly version of the same model.
Example:
mod |
|
protected |
Called when wanting to stop checking for collisions.
Example:
|
protected |
Called when wanting to check for collisions.
Example:
|
protected |
Updates Objects Collision Model for proper scaling and positioning.
Example:
mat |