Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
BodyPair Struct Reference

Structure that holds a body pair. More...

#include <BodyPair.h>

Public Member Functions

JPH_OVERRIDE_NEW_DELETE BodyPair ()=default
 Constructor.
 
 BodyPair (BodyID inA, BodyID inB)
 
bool operator== (const BodyPair &inRHS) const
 Equals operator.
 
bool operator< (const BodyPair &inRHS) const
 Smaller than operator, used for consistently ordering body pairs.
 
uint64 GetHash () const
 Get the hash value of this object.
 

Public Attributes

BodyID mBodyA
 
BodyID mBodyB
 

Detailed Description

Structure that holds a body pair.

Constructor & Destructor Documentation

◆ BodyPair() [1/2]

JPH_OVERRIDE_NEW_DELETE BodyPair::BodyPair ( )
default

Constructor.

◆ BodyPair() [2/2]

BodyPair::BodyPair ( BodyID  inA,
BodyID  inB 
)
inline

Member Function Documentation

◆ GetHash()

uint64 BodyPair::GetHash ( ) const
inline

Get the hash value of this object.

◆ operator<()

bool BodyPair::operator< ( const BodyPair inRHS) const
inline

Smaller than operator, used for consistently ordering body pairs.

◆ operator==()

bool BodyPair::operator== ( const BodyPair inRHS) const
inline

Equals operator.

Member Data Documentation

◆ mBodyA

BodyID BodyPair::mBodyA

◆ mBodyB

BodyID BodyPair::mBodyB

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