Interface ConstCharacterContactKey

All Superinterfaces:
AutoCloseable, Comparable<JoltPhysicsObject>, ConstJoltPhysicsObject
All Known Subinterfaces:
ConstCharacterContact
All Known Implementing Classes:
CharacterContact, CharacterContactKey

public interface ConstCharacterContactKey extends ConstJoltPhysicsObject
Read-only access to a CharacterContactKey. (native type: const CharacterContactKey)
  • Method Details

    • getBodyB

      int getBodyB()
      Return the ID of the colliding body. The key is unaffected.
      Returns:
      the BodyID value
    • getCharacterIdB

      int getCharacterIdB()
      Return the ID of the colliding character. The key is unaffected.
      Returns:
      the CharacterID value
    • getSubShapeIdB

      int getSubShapeIdB()
      Return the sub-shape ID of the colliding body. The key is unaffected.
      Returns:
      a SubShapeID value (typically negative)
    • isEqual

      boolean isEqual(ConstCharacterContactKey other)
      Test for equivalence with another key. Both keys are unaffected.
      Parameters:
      other - the key to compare with (not null)
      Returns:
      true if equivalent, otherwise false
    • isNotEqual

      boolean isNotEqual(ConstCharacterContactKey other)
      Test for equivalence with another key. Both keys are unaffected.
      Parameters:
      other - the key to compare with (not null)
      Returns:
      false if equivalent, otherwise true
    • saveState

      void saveState(StateRecorder recorder)
      Save the key to the specified recorder. The key is unaffected.
      Parameters:
      recorder - the recorder to save to (not null)