Class IgnoreMultipleBodiesFilter

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

public class IgnoreMultipleBodiesFilter extends BodyFilter
A BodyFilter that ignores specific bodies.
  • Constructor Details

    • IgnoreMultipleBodiesFilter

      public IgnoreMultipleBodiesFilter()
      Instantiate a default filter that selects all bodies.
  • Method Details

    • clear

      public void clear()
      Remove all bodies from the filter.
    • reserve

      public void reserve(int capacity)
      Reserve memory for the specified number of bodies.
      Parameters:
      capacity - the desired capacity (in bodies, ≥0)
    • ignoreBody

      public void ignoreBody(int bodyId)
      Start ignoring the specified body.
      Parameters:
      bodyId - the ID of the body to ignore