#[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 duplicate 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
impl Copy for PxSolverType
impl Eq for PxSolverType
impl StructuralPartialEq for PxSolverType
Auto Trait Implementations§
impl Freeze for PxSolverType
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