pub fn basic_collide<C, I, P, T, B, Y, D>(
    data: &C,
    broad: &mut Box<dyn BroadPhase<D>>,
    narrow: &Option<Box<dyn NarrowPhase<P, T, B, Y>>>
) -> Vec<ContactEvent<I, P::Point>>where
    C: CollisionData<I, P, T, B, Y, D>,
    P: Primitive,
    <P::Point as EuclideanSpace>::Diff: Debug,
    I: Copy + Debug,
    D: HasBound<Bound = B> + GetId<I>,
    B: Bound<Point = P::Point>,
Expand description

Do basic collision detection (not using a DBVT)

Type parameters:

  • C: Collision data
  • I: Id, returned by GetId on D, primary id for a collider
  • P: Primitive
  • T: Transform
  • B: Bounding volume
  • Y: Collider, see Collider for more information
  • D: Broad phase data