#[repr(i32)]pub enum PxActorFlag {
Visualization = 1,
DisableGravity = 2,
SendSleepNotifies = 4,
DisableSimulation = 8,
}Expand description
Flags which control the behavior of an actor.
Variants§
Visualization = 1
Enable debug renderer for this actor
DisableGravity = 2
Disables scene gravity for this actor
SendSleepNotifies = 4
Enables the sending of PxSimulationEventCallback::onWake() and PxSimulationEventCallback::onSleep() notify events
DisableSimulation = 8
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 more