pub struct SolverSettings {
pub velocity_iterations: usize,
pub position_iterations: usize,
pub warm_start: bool,
pub allow_sleep: bool,
pub sleep_delay: f32,
pub linear_sleep_threshold: f32,
pub angular_sleep_threshold: f32,
pub contact_match_distance: f32,
pub contact_break_distance: f32,
pub max_cached_manifolds: usize,
}Expand description
Solver settings are validated and installed transactionally through the world.
Fields§
§velocity_iterations: usize§position_iterations: usize§warm_start: bool§allow_sleep: bool§sleep_delay: f32§linear_sleep_threshold: f32§angular_sleep_threshold: f32§contact_match_distance: f32§contact_break_distance: f32§max_cached_manifolds: usizeA full cache falls back to cold solving, never missing physical contacts.
Trait Implementations§
Source§impl Clone for SolverSettings
impl Clone for SolverSettings
Source§fn clone(&self) -> SolverSettings
fn clone(&self) -> SolverSettings
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 SolverSettings
impl Debug for SolverSettings
Source§impl Default for SolverSettings
impl Default for SolverSettings
Source§fn default() -> SolverSettings
fn default() -> SolverSettings
Returns the “default value” for a type. Read more
Source§impl PartialEq for SolverSettings
impl PartialEq for SolverSettings
impl Copy for SolverSettings
impl StructuralPartialEq for SolverSettings
Auto Trait Implementations§
impl Freeze for SolverSettings
impl RefUnwindSafe for SolverSettings
impl Send for SolverSettings
impl Sync for SolverSettings
impl Unpin for SolverSettings
impl UnwindSafe for SolverSettings
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