3#include <Core/World/Declarations.h>
4#include <Physics/Collision/ContactListener.h>
13 class ContactSettings;
14 class ContactManifold;
33 const JPH::Body* m_pBody =
nullptr;
34 bool m_bStillSliding =
false;
35 bool m_bStillRolling =
false;
60 void SpawnPhysicsImpactReactions();
61 void UpdatePhysicsSlideReactions();
62 void UpdatePhysicsRollReactions();
82 virtual void OnContactAdded(
const JPH::Body& body1,
const JPH::Body& body2,
const JPH::ContactManifold& manifold, JPH::ContactSettings& ref_settings)
override;
83 virtual void OnContactPersisted(
const JPH::Body& body1,
const JPH::Body& body2,
const JPH::ContactManifold& manifold, JPH::ContactSettings& ref_settings)
override;
85 virtual void OnContactRemoved(
const JPH::SubShapeIDPair& subShapePair)
override;
87 void OnContact(
const JPH::Body& body0,
const JPH::Body& body1,
const JPH::ContactManifold& manifold, JPH::ContactSettings& ref_settings,
bool bPersistent);
89 bool ActivateTrigger(
const JPH::Body& body1,
const JPH::Body& body2, plUInt64 uiBody1id, plUInt64 uiBody2id);
91 void DeactivateTrigger(plUInt64 uiBody1id, plUInt64 uiBody2id);
This class is optimized to take nearly no memory (sizeof(void*)) and to allow very fast checks whethe...
Definition HashedString.h:25
A hybrid array uses in-place storage to handle the first few elements without any allocation....
Definition HybridArray.h:12
Turns an object into a trigger that is capable of detecting when other physics objects enter its volu...
Definition JoltTriggerComponent.h:39
Provides a simple mechanism for mutual exclusion to prevent multiple threads from accessing a shared ...
Definition Mutex.h:13
Definition SurfaceResource.h:27
A class to use together with plHashedString for quick comparisons with temporary strings that need no...
Definition HashedString.h:151
static plVec3Template< float > MakeZero()
Definition Vec3.h:38
A world encapsulates a scene graph of game objects and various component managers and their component...
Definition World.h:22
The plBitflags class allows you to work with type-safe bitflags.
Definition Bitflags.h:82
A handle to a game object.
Definition Declarations.h:76