![]() |
Jolt Physics
A multi core friendly Game Physics Engine
|
Uniquely identifies a contact between a character and another body or character. More...
#include <CharacterVirtual.h>
Public Member Functions | |
| ContactKey ()=default | |
| Constructor. More... | |
| ContactKey (const ContactKey &inContact)=default | |
| ContactKey (const BodyID &inBodyB, const SubShapeID &inSubShapeID) | |
| ContactKey (const CharacterID &inCharacterIDB, const SubShapeID &inSubShapeID) | |
| ContactKey & | operator= (const ContactKey &inContact)=default |
| bool | IsSameBody (const ContactKey &inOther) const |
| Checks if two contacts refer to the same body (or virtual character) More... | |
| bool | operator== (const ContactKey &inRHS) const |
| Equality operator. More... | |
| bool | operator!= (const ContactKey &inRHS) const |
| uint64 | GetHash () const |
| Hash of this structure. More... | |
| void | SaveState (StateRecorder &inStream) const |
| void | RestoreState (StateRecorder &inStream) |
Public Attributes | |
| BodyID | mBodyB |
| ID of body we're colliding with (if not invalid) More... | |
| CharacterID | mCharacterIDB |
| Character we're colliding with (if not invalid) More... | |
| SubShapeID | mSubShapeIDB |
| Sub shape ID of body or character we're colliding with. More... | |
Uniquely identifies a contact between a character and another body or character.
|
default |
Constructor.
|
default |
|
inline |
|
inline |
|
inline |
Checks if two contacts refer to the same body (or virtual character)
|
inline |
|
default |
|
inline |
Equality operator.
| void CharacterVirtual::ContactKey::RestoreState | ( | StateRecorder & | inStream | ) |
| void CharacterVirtual::ContactKey::SaveState | ( | StateRecorder & | inStream | ) | const |
| BodyID CharacterVirtual::ContactKey::mBodyB |
ID of body we're colliding with (if not invalid)
| CharacterID CharacterVirtual::ContactKey::mCharacterIDB |
Character we're colliding with (if not invalid)
| SubShapeID CharacterVirtual::ContactKey::mSubShapeIDB |
Sub shape ID of body or character we're colliding with.