pub struct PhysicsConfig<S: PhysicsSpace> { /* private fields */ }Implementations§
Source§impl<S> PhysicsConfig<S>
impl<S> PhysicsConfig<S>
pub fn new(register: fn(&mut Narrowphase<S>)) -> Self
pub fn gravity(self, gravity: S::Vector) -> Self
pub fn substeps(self, substeps: u32) -> Self
pub fn adaptive_substeps( self, minimum: u32, maximum: u32, max_step_travel: f32, motion_speed: fn(&RigidBody<S>) -> f32, ) -> Self
pub fn grab(self, grab: GrabConfig<S>) -> Self
Auto Trait Implementations§
impl<S> Freeze for PhysicsConfig<S>
impl<S> RefUnwindSafe for PhysicsConfig<S>
impl<S> Send for PhysicsConfig<S>
impl<S> Sync for PhysicsConfig<S>
impl<S> Unpin for PhysicsConfig<S>
impl<S> UnsafeUnpin for PhysicsConfig<S>
impl<S> UnwindSafe for PhysicsConfig<S>
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