Interface ConstBodyIdArray
- All Superinterfaces:
AutoCloseable,Comparable<JoltPhysicsObject>,ConstJoltPhysicsObject
- All Known Implementing Classes:
BodyIdArray
Read-only access to a
BodyIdArray. (native type:
const BodyID[])-
Method Summary
Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
-
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
BodyIDvalue
-
length
int length()Return the length of the array.- Returns:
- the length (in IDs)
-