Class CharacterVsCharacterCollisionSimple

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

public class CharacterVsCharacterCollisionSimple extends CharacterVsCharacterCollision
A simple implementation of the Character-versus-Character collision interface.
  • Constructor Details

    • CharacterVsCharacterCollisionSimple

      public CharacterVsCharacterCollisionSimple()
      Instantiate a default interface.
  • Method Details

    • add

      public void add(CharacterVirtualRef characterRef)
      Add the specified character to the collision list.
      Parameters:
      characterRef - a counted reference to the character to add (not null, alias created)
    • getCharacters

      public CharacterVirtualRef[] getCharacters()
      Enumerate all characters in the collision list.
      Returns:
      a new array of pre-existing counted references
    • remove

      public void remove(CharacterVirtualRef characterRef)
      Remove the specified character from the collision list.
      Parameters:
      characterRef - a counted reference to the character to remove (not null)