Om  1.0.0
A universal framework for multimedia simulation
Public Member Functions | Public Attributes | List of all members
om::physics::collision::CollisionPair Class Reference

A class that represents a pair of potentially colliding objects. More...

#include <omPhysicsCollisionPair.h>

Public Member Functions

 CollisionPair (Collider *newCollider1, Collider *newCollider2)
 Create a new collision pair for the specified colliders. More...
 
Hash getHashCode () const
 Return an integer hash code for this collision pair. More...
 

Public Attributes

Collidercollider1
 A pointer to the first collider in the collision pair. More...
 
Collidercollider2
 A pointer to the second collider in the collision pair. More...
 

Detailed Description

A class that represents a pair of potentially colliding objects.

Constructor & Destructor Documentation

om::physics::collision::CollisionPair::CollisionPair ( Collider newCollider1,
Collider newCollider2 
)
inline

Create a new collision pair for the specified colliders.

Member Function Documentation

Hash om::physics::collision::CollisionPair::getHashCode ( ) const
inline

Return an integer hash code for this collision pair.

Member Data Documentation

Collider* om::physics::collision::CollisionPair::collider1

A pointer to the first collider in the collision pair.

Collider* om::physics::collision::CollisionPair::collider2

A pointer to the second collider in the collision pair.


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