PxActorFlag
Defined in include/PxActor.h
-
struct PxActorFlag
Flags which control the behavior of an actor.
Public Types
-
enum Enum
Values:
-
enumerator eVISUALIZATION
Enable debug renderer for this actor.
-
enumerator eDISABLE_GRAVITY
Disables scene gravity for this actor.
-
enumerator eSEND_SLEEP_NOTIFIES
Enables the sending of PxSimulationEventCallback::onWake() and PxSimulationEventCallback::onSleep() notify events.
-
enumerator eDISABLE_SIMULATION
Disables simulation for the actor.
Raising this flag will set all velocities and the wake counter to 0, clear all forces, clear the kinematic target, put the actor to sleep and wake up all touching actors from the previous frame.
Note
This is only supported by PxRigidStatic and PxRigidDynamic actors and can be used to reduce the memory footprint when rigid actors are used for scene queries only.
Note
Setting this flag will remove all constraints attached to the actor from the scene.
Note
If this flag is set, the following calls are forbidden:
PxRigidBody: setLinearVelocity(), setAngularVelocity(), addForce(), addTorque(), clearForce(), clearTorque(), setForceAndTorque()
PxRigidDynamic: setKinematicTarget(), setWakeCounter(), wakeUp(), putToSleep()
-
enumerator eVISUALIZATION
-
enum Enum