pub enum ActorFlag {
Visualization,
DisableGravity,
SendSleepNotifies,
DisableSimulation,
}
Expand description
Flags which control the behavior of an actor.
Variants§
Visualization
Enable debug renderer for this actor
DisableGravity
Disables scene gravity for this actor
SendSleepNotifies
Enables the sending of PxSimulationEventCallback::onWake() and PxSimulationEventCallback::onSleep() notify events
DisableSimulation
Disables simulation for the actor.
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.
Setting this flag will remove all constraints attached to the actor from the scene.
If this flag is set, the following calls are forbidden:
PxRigidBody: setLinearVelocity(), setAngularVelocity(), addForce(), addTorque(), clearForce(), clearTorque(), setForceAndTorque()
PxRigidDynamic: setKinematicTarget(), setWakeCounter(), wakeUp(), putToSleep()
Sleeping: 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.
Trait Implementations§
source§impl Clone for PxActorFlag
impl Clone for PxActorFlag
source§fn clone(&self) -> PxActorFlag
fn clone(&self) -> PxActorFlag
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PxActorFlag
impl Debug for PxActorFlag
source§impl PartialEq<PxActorFlag> for PxActorFlag
impl PartialEq<PxActorFlag> for PxActorFlag
source§fn eq(&self, other: &PxActorFlag) -> bool
fn eq(&self, other: &PxActorFlag) -> bool
self
and other
values to be equal, and is used
by ==
.