Enum physx_sys::PxSolverType
source · #[repr(i32)]pub enum PxSolverType {
Pgs = 0,
Tgs = 1,
}
Expand description
Enum for selecting the type of solver used for the simulation.
[PxSolverType::ePGS
] selects the iterative sequential impulse solver. This is the same kind of solver used in PhysX 3.4 and earlier releases.
[PxSolverType::eTGS
] selects a non linear iterative solver. This kind of solver can lead to improved convergence and handle large mass ratios, long chains and jointed systems better. It is slightly more expensive than the default solver and can introduce more energy to correct joint and contact errors.
Variants§
Trait Implementations§
source§impl Clone for PxSolverType
impl Clone for PxSolverType
source§fn clone(&self) -> PxSolverType
fn clone(&self) -> PxSolverType
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 PxSolverType
impl Debug for PxSolverType
source§impl PartialEq for PxSolverType
impl PartialEq for PxSolverType
source§fn eq(&self, other: &PxSolverType) -> bool
fn eq(&self, other: &PxSolverType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PxSolverType
impl Eq for PxSolverType
impl StructuralEq for PxSolverType
impl StructuralPartialEq for PxSolverType
Auto Trait Implementations§
impl RefUnwindSafe for PxSolverType
impl Send for PxSolverType
impl Sync for PxSolverType
impl Unpin for PxSolverType
impl UnwindSafe for PxSolverType
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