ToyMaker Game Engine 0.0.2
ToyMaker is a game engine developed and maintained by Zoheb Shujauddin.
Loading...
Searching...
No Matches
ToyMaker::CollisionPair Class Reference

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.

Detailed Description

Names two distinct entities participating in a collision, with their entity IDs sorted in ascending order.

Built to be used in an std::set


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