Command to handle collision tests between two collidable groups. More...
#include <CollisionTestPairCommand.h>
Public Member Functions | |
CollisionTestPairCommand (const CollisionTestPairCommand &)=delete | |
CollisionTestPairCommand & | operator= (const CollisionTestPairCommand &)=delete |
CollisionTestPairCommand (CollidableGroup *g1, CollidableGroup *g2, CollisionDispatchBase *d) | |
Constructor for CollisionTestPairCommand with collidable groups and dispatch. | |
virtual void | Execute () override |
Executes the collision test command between the two collidable groups. | |
![]() | |
CollisionTestCommandBase (const CollisionTestCommandBase &)=default | |
CollisionTestCommandBase & | operator= (const CollisionTestCommandBase &)=default |
Private Attributes | |
CollidableGroup * | pG1 |
Pointer to the first collidable group. | |
CollidableGroup * | pG2 |
Pointer to the second collidable group. | |
CollisionDispatchBase * | pDispatch |
Pointer to the collision dispatch. | |
Command to handle collision tests between two collidable groups.
The CollisionTestPairCommand class is responsible for executing collision tests between two collidable groups. It inherits from the CollisionTestCommandBase class and overrides the Execute method to perform the collision test.
CollisionTestPairCommand::CollisionTestPairCommand | ( | CollidableGroup * | g1, |
CollidableGroup * | g2, | ||
CollisionDispatchBase * | d ) |
Constructor for CollisionTestPairCommand with collidable groups and dispatch.
g1 | Pointer to the first collidable group. |
g2 | Pointer to the second collidable group. |
d | Pointer to the collision dispatch. |
|
overridevirtual |
Executes the collision test command between the two collidable groups.
Implements CollisionTestCommandBase.