Enum physx_sys::PxMeshMidPhase
source · #[repr(i32)]pub enum PxMeshMidPhase {
Bvh33,
Bvh34,
Last,
}
Expand description
Mesh midphase structure. This enum is used to select the desired acceleration structure for midphase queries (i.e. raycasts, overlaps, sweeps vs triangle meshes).
The PxMeshMidPhase::eBVH33 structure is the one used in recent PhysX versions (up to PhysX 3.3). It has great performance and is supported on all platforms. It is deprecated since PhysX 5.x.
The PxMeshMidPhase::eBVH34 structure is a revisited implementation introduced in PhysX 3.4. It can be significantly faster both in terms of cooking performance and runtime performance.
Variants§
Bvh33
Default midphase mesh structure, as used up to PhysX 3.3 (deprecated)
Bvh34
New midphase mesh structure, introduced in PhysX 3.4
Last
Trait Implementations§
source§impl Clone for PxMeshMidPhase
impl Clone for PxMeshMidPhase
source§fn clone(&self) -> PxMeshMidPhase
fn clone(&self) -> PxMeshMidPhase
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PxMeshMidPhase
impl Debug for PxMeshMidPhase
source§impl PartialEq<PxMeshMidPhase> for PxMeshMidPhase
impl PartialEq<PxMeshMidPhase> for PxMeshMidPhase
source§fn eq(&self, other: &PxMeshMidPhase) -> bool
fn eq(&self, other: &PxMeshMidPhase) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PxMeshMidPhase
impl Eq for PxMeshMidPhase
impl StructuralEq for PxMeshMidPhase
impl StructuralPartialEq for PxMeshMidPhase
Auto Trait Implementations§
impl RefUnwindSafe for PxMeshMidPhase
impl Send for PxMeshMidPhase
impl Sync for PxMeshMidPhase
impl Unpin for PxMeshMidPhase
impl UnwindSafe for PxMeshMidPhase
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more