Class SimCollideBodyVsBody

All Implemented Interfaces:
ConstJoltPhysicsObject, AutoCloseable, Comparable<JoltPhysicsObject>

public class SimCollideBodyVsBody extends NonCopyable
Collide 2 bodies during simulation. (native method: PhysicsSystem::SimCollideBodyVsBody)
  • Constructor Details

    • SimCollideBodyVsBody

      public SimCollideBodyVsBody()
      Instantiate a default collider.
  • Method Details

    • collide

      public void collide(ConstBody body1, ConstBody body2, Mat44Arg comTransform1, Mat44Arg comTransform2, CollideShapeSettings settings, CollideShapeCollector collector, ShapeFilter filter)
      Collide the specified bodies. The collider is unaffected.
      Parameters:
      body1 - the first colliding body (not null, unaffected)
      body2 - the 2nd colliding body (not null, unaffected)
      comTransform1 - the center-of-mass transform of the first colliding body (not null, unaffected)
      comTransform2 - the center-of-mass transform of the 2nd colliding body (not null, unaffected)
      settings - the collide-shape settings (not null)
      collector - the collide-shape collector (not null)
      filter - the shape filter (not null, unaffected)