Interface ConstGroupFilter

All Superinterfaces:
AutoCloseable, Comparable<JoltPhysicsObject>, ConstJoltPhysicsObject, ConstSerializableObject
All Known Implementing Classes:
GroupFilter, GroupFilterTable

public interface ConstGroupFilter extends ConstSerializableObject
Read-only access to a GroupFilter.
  • Method Details

    • canCollide

      boolean canCollide(ConstCollisionGroup group1, ConstCollisionGroup group2)
      Test whether the specified groups can collide. The filter is unaffected.
      Parameters:
      group1 - the first group (not null, unaffected)
      group2 - the 2nd group (not null, unaffected)
      Returns:
      true if they can collide, otherwise false
    • saveBinaryState

      void saveBinaryState(StreamOut stream)
      Save the settings to the specified binary stream. The filter is unaffected.
      Parameters:
      stream - the stream to write to (not null)