pub struct WorldConfig<const D: usize> {
pub gravity: [f32; D],
pub max_bodies: usize,
pub max_pairs: usize,
pub max_pair_tests: usize,
pub solver_iterations: u32,
pub contact_slop: f32,
pub ccd_iterations: u32,
}Fields§
§gravity: [f32; D]§max_bodies: usize§max_pairs: usize§max_pair_tests: usizeBound work even when many AABBs overlap along the sweep axis only.
solver_iterations: u32§contact_slop: f32§ccd_iterations: u32At most this many terrain impacts are processed per CCD body per step.
Implementations§
Source§impl<const D: usize> WorldConfig<D>
impl<const D: usize> WorldConfig<D>
pub fn new(gravity: [f32; D]) -> WorldConfig<D>
Trait Implementations§
Source§impl<const D: usize> Clone for WorldConfig<D>
impl<const D: usize> Clone for WorldConfig<D>
Source§fn clone(&self) -> WorldConfig<D>
fn clone(&self) -> WorldConfig<D>
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<const D: usize> Debug for WorldConfig<D>
impl<const D: usize> Debug for WorldConfig<D>
impl<const D: usize> Copy for WorldConfig<D>
Auto Trait Implementations§
impl<const D: usize> Freeze for WorldConfig<D>
impl<const D: usize> RefUnwindSafe for WorldConfig<D>
impl<const D: usize> Send for WorldConfig<D>
impl<const D: usize> Sync for WorldConfig<D>
impl<const D: usize> Unpin for WorldConfig<D>
impl<const D: usize> UnwindSafe for WorldConfig<D>
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