29#ifndef PX_SIMULATION_EVENT_CALLBACK_H
30#define PX_SIMULATION_EVENT_CALLBACK_H
35#include "foundation/PxVec3.h"
36#include "foundation/PxTransform.h"
37#include "foundation/PxMemory.h"
38#include "PxPhysXConfig.h"
39#include "PxFiltering.h"
210 bool foundEntry =
false;
211 bool endOfItemSet =
false;
215 PxU8 type = edItem->
type;
598 PxU32 internalData[2];
622 PX_INLINE const PxU32* getInternalFaceIndices()
const;
628 PxU32 nbContacts = 0;
662 const PxReal impulse = impulses[nbContacts];
668 if(nbContacts == bufferSize)
680 PxU8* patches = bufferMemory;
681 PxU8* contacts = NULL;
703PX_INLINE const PxU32* PxContactPair::getInternalFaceIndices()
const
PxActor is the base class for the main simulation objects in the physics SDK.
Definition PxActor.h:201
A plugin class for implementing constraints.
Definition PxConstraint.h:100
Container for bitfield flag variables associated with a specific enum type.
Definition PxFlags.h:73
PxRigidBody is a base class shared between dynamic rigid body objects.
Definition PxRigidBody.h:199
Abstract class for collision shapes.
Definition PxShape.h:146
An interface class that the user can implement in order to receive simulation events.
Definition PxSimulationEventCallback.h:792
virtual void onAdvance(const PxRigidBody *const *bodyBuffer, const PxTransform *poseBuffer, const PxU32 count)=0
Provides early access to the new pose of moving rigid bodies.
virtual void onSleep(PxActor **actors, PxU32 count)=0
This is called with the actors which have just been put to sleep.
virtual void onTrigger(PxTriggerPair *pairs, PxU32 count)=0
This is called with the current trigger pair events.
virtual void onContact(const PxContactPairHeader &pairHeader, const PxContactPair *pairs, PxU32 nbPairs)=0
This is called when certain contact events occur.
virtual void onWake(PxActor **actors, PxU32 count)=0
This is called with the actors which have just been woken up.
virtual void onConstraintBreak(PxConstraintInfo *constraints, PxU32 count)=0
This is called when a breakable constraint breaks.
3 Element vector class.
Definition PxVec3.h:50
#define PX_FORCE_INLINE
Definition PxPreprocessor.h:335
#define PX_INLINE
Definition PxPreprocessor.h:320
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39
PX_FORCE_INLINE void * PxMemCopy(void *dest, const void *src, PxU32 count)
Copies the bytes of one memory block to another. The memory blocks must not overlap.
Definition PxMemory.h:83
PxFlags< PxTriggerPairFlag::Enum, PxU8 > PxTriggerPairFlags
Bitfield that contains a set of raised flags defined in PxTriggerPairFlag.
Definition PxSimulationEventCallback.h:728
PxFlags< PxContactPairFlag::Enum, PxU16 > PxContactPairFlags
Bitfield that contains a set of raised flags defined in PxContactPairFlag.
Definition PxSimulationEventCallback.h:454
PxFlags< PxContactPairHeaderFlag::Enum, PxU16 > PxContactPairHeaderFlags
Bitfield that contains a set of raised flags defined in PxContactPairHeaderFlag.
Definition PxSimulationEventCallback.h:336
Descriptor for a broken constraint.
Definition PxSimulationEventCallback.h:765
PxConstraint * constraint
The broken constraint.
Definition PxSimulationEventCallback.h:769
void * externalReference
The external object which owns the constraint (see PxConstraintConnector::getExternalReference())
Definition PxSimulationEventCallback.h:770
PxU32 type
Unique type ID of the external object. Allows to cast the provided external reference to the appropri...
Definition PxSimulationEventCallback.h:771
Enum
Definition PxFiltering.h:56
Collection of flags providing information on trigger report pairs.
Definition PxSimulationEventCallback.h:714
Enum
Definition PxSimulationEventCallback.h:716
@ eNEXT_FREE
For internal use only.
Definition PxSimulationEventCallback.h:719
@ eREMOVED_SHAPE_TRIGGER
The trigger shape has been removed from the actor/scene.
Definition PxSimulationEventCallback.h:717
@ eREMOVED_SHAPE_OTHER
The shape causing the trigger event has been removed from the actor/scene.
Definition PxSimulationEventCallback.h:718
Descriptor for a trigger pair.
Definition PxSimulationEventCallback.h:745
PxShape * triggerShape
The shape that has been marked as a trigger.
Definition PxSimulationEventCallback.h:748
PxPairFlag::Enum status
Type of trigger event (eNOTIFY_TOUCH_FOUND or eNOTIFY_TOUCH_LOST). eNOTIFY_TOUCH_PERSISTS events are ...
Definition PxSimulationEventCallback.h:752
PxActor * triggerActor
The actor to which triggerShape is attached.
Definition PxSimulationEventCallback.h:749
PxTriggerPairFlags flags
Additional information on the pair (see #PxTriggerPairFlag)
Definition PxSimulationEventCallback.h:753
PxShape * otherShape
The shape causing the trigger event.
Definition PxSimulationEventCallback.h:750
PxActor * otherActor
The actor to which otherShape is attached.
Definition PxSimulationEventCallback.h:751