Enum physx_sys::PxFilterFlag
source · #[repr(i32)]pub enum PxFilterFlag {
Kill,
Suppress,
Callback,
Notify,
Default,
}
Expand description
Collection of flags describing the filter actions to take for a collision pair.
Variants§
Kill
Ignore the collision pair as long as the bounding volumes of the pair objects overlap.
Killed pairs will be ignored by the simulation and won’t run through the filter again until one of the following occurs:
The bounding volumes of the two objects overlap again (after being separated)
The user enforces a re-filtering (see PxScene::resetFiltering
)
Suppress
Ignore the collision pair as long as the bounding volumes of the pair objects overlap or until filtering relevant data changes for one of the collision objects.
Suppressed pairs will be ignored by the simulation and won’t make another filter request until one of the following occurs:
Same conditions as for killed pairs (see [eKILL
])
The filter data or the filter object attributes change for one of the collision objects
Callback
Invoke the filter callback (PxSimulationFilterCallback::pairFound
) for this collision pair.
Notify
Track this collision pair with the filter callback mechanism.
When the bounding volumes of the collision pair lose contact, the filter callback PxSimulationFilterCallback::pairLost
will be invoked. Furthermore, the filter status of the collision pair can be adjusted through PxSimulationFilterCallback::statusChange
once per frame (until a pairLost() notification occurs).
Default
Provided default to get standard behavior:
The application configure the pair’s collision properties once when bounding volume overlap is found and doesn’t get asked again about that pair until overlap status or filter properties changes, or re-filtering is requested.
No notification is provided when bounding volume overlap is lost
The pair will not be killed or suppressed, so collision detection will be processed
Trait Implementations§
source§impl Clone for PxFilterFlag
impl Clone for PxFilterFlag
source§fn clone(&self) -> PxFilterFlag
fn clone(&self) -> PxFilterFlag
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PxFilterFlag
impl Debug for PxFilterFlag
source§impl PartialEq<PxFilterFlag> for PxFilterFlag
impl PartialEq<PxFilterFlag> for PxFilterFlag
source§fn eq(&self, other: &PxFilterFlag) -> bool
fn eq(&self, other: &PxFilterFlag) -> bool
self
and other
values to be equal, and is used
by ==
.