pub struct NarrowPhase;Expand description
Narrow-phase collision detection system.
Implementations§
Source§impl NarrowPhase
impl NarrowPhase
Sourcepub fn detect(
&self,
shape_a: &ColliderShape,
trans_a: &AffineTransform,
shape_b: &ColliderShape,
trans_b: &AffineTransform,
) -> Option<ContactManifold>
pub fn detect( &self, shape_a: &ColliderShape, trans_a: &AffineTransform, shape_b: &ColliderShape, trans_b: &AffineTransform, ) -> Option<ContactManifold>
Detects collision between two shapes.
Returns a ContactManifold if a collision is detected.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NarrowPhase
impl RefUnwindSafe for NarrowPhase
impl Send for NarrowPhase
impl Sync for NarrowPhase
impl Unpin for NarrowPhase
impl UnwindSafe for NarrowPhase
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