Interface ConstSubShapeIdPair
- All Superinterfaces:
AutoCloseable,Comparable<JoltPhysicsObject>,ConstJoltPhysicsObject
- All Known Implementing Classes:
SubShapeIdPair
Read-only access to a
SubShapeIdPair. (native type: const
SubShapeIDPair)-
Method Summary
Modifier and TypeMethodDescriptionintReturn the ID of the first body.intReturn the ID of the 2nd body.longgetHash()Return the hashcode for the pair.intReturn the ID of the first sub-shape.intReturn the ID of the 2nd sub-shape.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
-
Method Details
-
getBody1Id
int getBody1Id()Return the ID of the first body. The pair is unaffected.- Returns:
- the
BodyIDvalue
-
getBody2Id
int getBody2Id()Return the ID of the 2nd body. The pair is unaffected.- Returns:
- the
BodyIDvalue
-
getHash
long getHash()Return the hashcode for the pair. The pair is unaffected.- Returns:
- the value
-
getSubShapeId1
int getSubShapeId1()Return the ID of the first sub-shape. The pair is unaffected.- Returns:
- a
SubShapeIDvalue
-
getSubShapeId2
int getSubShapeId2()Return the ID of the 2nd sub-shape. The pair is unaffected.- Returns:
- a
SubShapeIDvalue
-