Enum physx_sys::PxContactPairFlag
source · #[repr(i32)]pub enum PxContactPairFlag {
RemovedShape0 = 1,
RemovedShape1 = 2,
ActorPairHasFirstTouch = 4,
ActorPairLostTouch = 8,
InternalHasImpulses = 16,
InternalContactsAreFlipped = 32,
}
Expand description
Collection of flags providing information on contact report pairs.
Variants§
RemovedShape0 = 1
The shape with index 0 has been removed from the actor/scene.
RemovedShape1 = 2
The shape with index 1 has been removed from the actor/scene.
ActorPairHasFirstTouch = 4
First actor pair contact.
The provided shape pair marks the first contact between the two actors, no other shape pair has been touching prior to the current simulation frame.
: This info is only available if [PxPairFlag::eNOTIFY_TOUCH_FOUND
] has been declared for the pair.
ActorPairLostTouch = 8
All contact between the actor pair was lost.
All contact between the two actors has been lost, no shape pairs remain touching after the current simulation frame.
InternalHasImpulses = 16
Internal flag, used by PxContactPair
.extractContacts()
The applied contact impulses are provided for every contact point.
This is the case if [PxPairFlag::eSOLVE_CONTACT
] has been set for the pair.
InternalContactsAreFlipped = 32
Internal flag, used by PxContactPair
.extractContacts()
The provided contact point information is flipped with regards to the shapes of the contact pair. This mainly concerns the order of the internal triangle indices.
Trait Implementations§
source§impl Clone for PxContactPairFlag
impl Clone for PxContactPairFlag
source§fn clone(&self) -> PxContactPairFlag
fn clone(&self) -> PxContactPairFlag
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PxContactPairFlag
impl Debug for PxContactPairFlag
source§impl PartialEq for PxContactPairFlag
impl PartialEq for PxContactPairFlag
source§fn eq(&self, other: &PxContactPairFlag) -> bool
fn eq(&self, other: &PxContactPairFlag) -> bool
self
and other
values to be equal, and is used
by ==
.