Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
SimulationEventCallback Class Reference
+ Inheritance diagram for SimulationEventCallback:
+ Collaboration diagram for SimulationEventCallback:

Public Member Functions

 SimulationEventCallback (QPhysicsWorld *worldIn)
 
virtual ~SimulationEventCallback ()=default
 
void onTrigger (physx::PxTriggerPair *pairs, physx::PxU32 count) override
 
void onConstraintBreak (physx::PxConstraintInfo *, physx::PxU32) override
 
void onWake (physx::PxActor **, physx::PxU32) override
 
void onSleep (physx::PxActor **, physx::PxU32) override
 
void onContact (const physx::PxContactPairHeader &pairHeader, const physx::PxContactPair *pairs, physx::PxU32 nbPairs) override
 
void onAdvance (const physx::PxRigidBody *const *, const physx::PxTransform *, const physx::PxU32) override
 

Detailed Description

Definition at line 239 of file qphysicsworld.cpp.

Constructor & Destructor Documentation

◆ SimulationEventCallback()

SimulationEventCallback::SimulationEventCallback ( QPhysicsWorld worldIn)
inline

Definition at line 242 of file qphysicsworld.cpp.

◆ ~SimulationEventCallback()

virtual SimulationEventCallback::~SimulationEventCallback ( )
virtualdefault

Member Function Documentation

◆ onAdvance()

void SimulationEventCallback::onAdvance ( const physx::PxRigidBody *const *  ,
const physx::PxTransform *  ,
const physx::PxU32   
)
inlineoverride

Definition at line 353 of file qphysicsworld.cpp.

◆ onConstraintBreak()

void SimulationEventCallback::onConstraintBreak ( physx::PxConstraintInfo *  ,
physx::PxU32   
)
inlineoverride

Definition at line 288 of file qphysicsworld.cpp.

◆ onContact()

void SimulationEventCallback::onContact ( const physx::PxContactPairHeader &  pairHeader,
const physx::PxContactPair *  pairs,
physx::PxU32  nbPairs 
)
inlineoverride

Definition at line 292 of file qphysicsworld.cpp.

References i, QPhysicsWorld::isNodeRemoved(), j, other(), position(), positions, QList< T >::push_back(), QAbstractPhysicsNode::receiveContactReports, QAbstractPhysicsNode::registerContact(), QList< T >::reserve(), QAbstractPhysicsNode::sendContactReports, QList< T >::size(), and QPhysicsUtils::toQtType().

+ Here is the call graph for this function:

◆ onSleep()

void SimulationEventCallback::onSleep ( physx::PxActor **  ,
physx::PxU32   
)
inlineoverride

Definition at line 291 of file qphysicsworld.cpp.

◆ onTrigger()

void SimulationEventCallback::onTrigger ( physx::PxTriggerPair *  pairs,
physx::PxU32  count 
)
inlineoverride

Definition at line 245 of file qphysicsworld.cpp.

References QTriggerBody::deregisterCollision(), emit, i, QPhysicsWorld::isNodeRemoved(), qWarning, QAbstractPhysicsNode::receiveTriggerReports, QTriggerBody::registerCollision(), and QAbstractPhysicsNode::sendTriggerReports.

+ Here is the call graph for this function:

◆ onWake()

void SimulationEventCallback::onWake ( physx::PxActor **  ,
physx::PxU32   
)
inlineoverride

Definition at line 290 of file qphysicsworld.cpp.


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