pub struct Narrowphase<S: PhysicsSpace> { /* private fields */ }Implementations§
Source§impl<S: PhysicsSpace> Narrowphase<S>
impl<S: PhysicsSpace> Narrowphase<S>
pub fn new() -> Self
pub fn register( &mut self, a: ColliderKind, b: ColliderKind, f: NarrowphaseFn<S>, )
pub fn registrations(&self) -> &[(ColliderKind, ColliderKind)]
pub fn test( &self, a: &RigidBody<S>, b: &RigidBody<S>, geometry: &GeometryStore, space: &S, ) -> Option<Contact<S>>
Trait Implementations§
Source§impl<S: PhysicsSpace> Default for Narrowphase<S>
impl<S: PhysicsSpace> Default for Narrowphase<S>
Auto Trait Implementations§
impl<S> Freeze for Narrowphase<S>
impl<S> RefUnwindSafe for Narrowphase<S>
impl<S> Send for Narrowphase<S>
impl<S> Sync for Narrowphase<S>
impl<S> Unpin for Narrowphase<S>
impl<S> UnsafeUnpin for Narrowphase<S>
impl<S> UnwindSafe for Narrowphase<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