#include <dustyAABBcollisiontask.h>
Inheritance diagram for DustyEngine::AABBCollisionTask:

Public Member Functions | |
| AABBCollisionTask () | |
| ~AABBCollisionTask () | |
| void | AddNode (irr::scene::ISceneNode *node) |
| void | RemoveNode (irr::scene::ISceneNode *node) |
| irr::core::list< DustyEngine::AABBCollision > * | GetCollisions () |
| void | ClearCollisions () |
| ClearCollisions() clears the list of collisions that have occured. This should be called after collision checking has been handled. | |
| void | OnUpdate () |
| OnUpdate() is called by the TaskTree when the time has come to execute the task's code. | |
Protected Attributes | |
| irr::core::list< irr::scene::ISceneNode * > | nodes |
| irr::core::list< DustyEngine::AABBCollision > | collisions |
This task can be used for easy testing to see whether any of a group of nodes have collided with each other. It uses a list of nodes, and each update it tests those nodes against each other. It attempts to prevent having redundant collisions, IE, node A collides with node B, and also node B collides with node A. This task attempts to only report when node A collides with node B, without registering the same collision twice. However, the collisions provided should be checked for redundancy.
Definition at line 23 of file dustyAABBcollisiontask.h.
|
|
|
|
|
|
|
|
AddNode() adds a node to the list of nodes which will checked for collisions against each other.
Definition at line 32 of file dustyAABBcollisiontask.h. |
|
|
ClearCollisions() clears the list of collisions that have occured. This should be called after collision checking has been handled.
Definition at line 49 of file dustyAABBcollisiontask.h. |
|
|
GetCollisions() returns a pointer to the list of all collisions which occured during the last update.
Definition at line 43 of file dustyAABBcollisiontask.h. |
|
|
OnUpdate() is called by the TaskTree when the time has come to execute the task's code. OnUpdate is typically the most important function. OnUpdate is only called when enough time has passed or every frame, depending upon what the priority of the task is. If you want code to execute on a time-based basis, put that code here and add the task to the tree. Reimplemented from DustyEngine::DummyTask. |
|
|
RemoveNode() removes a node from the list of nodes to be collided.
|
|
|
Definition at line 58 of file dustyAABBcollisiontask.h. |
|
|
Definition at line 57 of file dustyAABBcollisiontask.h. |
1.4.6-NO