|
ToyMaker Game Engine 0.0.2
ToyMaker is a game engine developed and maintained by Zoheb Shujauddin.
|
Names two distinct entities participating in a collision, with their entity IDs sorted in ascending order. More...
#include <sweep_prune.hpp>
Public Member Functions | |
| CollisionPair (EntityID first, EntityID second) | |
| Creates a collision pair out of two distinct entities, where the first entity's ID is lesser than the second's. | |
| EntityID | first () const |
| Returns the first entity in the link. | |
| EntityID | second () const |
| Returns the second entity in the link. | |
| bool | operator< (const CollisionPair &other) const |
Private Attributes | |
| EntityID | mFirst |
| The first entity in a constraint link. | |
| EntityID | mSecond |
| The second entity in a constraint link. | |
Names two distinct entities participating in a collision, with their entity IDs sorted in ascending order.
Built to be used in an std::set