Open 3D Engine PhysX Gem API Reference  24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
PhysX::SceneSimulationEventCallback Class Reference

#include <PhysXSceneSimulationEventCallback.h>

Inherits physx::PxSimulationEventCallback.

Public Member Functions

AzPhysics::CollisionEventList & GetQueuedCollisionEvents ()
 Accessor to the queued Collision / trigger Events.
 
AzPhysics::TriggerEventList & GetQueuedTriggerEvents ()
 
void FlushQueuedCollisionEvents ()
 Clear all queued collision / trigger events.
 
void FlushQueuedTriggerEvents ()
 
void onConstraintBreak (physx::PxConstraintInfo *constraints, physx::PxU32 count) override
 
void onWake (physx::PxActor **actors, physx::PxU32 count) override
 
void onSleep (physx::PxActor **actors, physx::PxU32 count) override
 
void onContact (const physx::PxContactPairHeader &pairHeader, const physx::PxContactPair *pairs, physx::PxU32 nbPairs) override
 
void onTrigger (physx::PxTriggerPair *pairs, physx::PxU32 count) override
 
void onAdvance (const physx::PxRigidBody *const *bodyBuffer, const physx::PxTransform *poseBuffer, const physx::PxU32 count) override
 

Detailed Description

Helper class that receives the collision events reported from PhysX. This will convert physx collision and trigger events in TriggerEvent and CollisionEvent to be forwarded to the Scene.


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