Interface ConstBodyIdArray

All Superinterfaces:
AutoCloseable, Comparable<JoltPhysicsObject>, ConstJoltPhysicsObject
All Known Implementing Classes:
BodyIdArray

public interface ConstBodyIdArray extends ConstJoltPhysicsObject
Read-only access to a BodyIdArray. (native type: const BodyID[])
  • Method Details

    • get

      int get(int elementIndex)
      Return the ID at the specified index.
      Parameters:
      elementIndex - the index from which to copy the ID (≥0, <length)
      Returns:
      the BodyID value
    • length

      int length()
      Return the length of the array.
      Returns:
      the length (in IDs)