Interface ConstSubShapeIdPair
- All Superinterfaces:
Comparable<JoltPhysicsObject>
,ConstJoltPhysicsObject
- All Known Implementing Classes:
SubShapeIdPair
Read-only access to a
SubShapeIdPair
. (native type: const
SubShapeIDPair)-
Method Summary
Modifier and TypeMethodDescriptionint
Return the ID of the first body.int
Return the ID of the 2nd body.long
getHash()
Return the hashcode for the pair.int
Return the ID of the first sub-shape.int
Return the ID of the 2nd sub-shape.Methods inherited from interface java.lang.Comparable
compareTo
Methods 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
BodyID
value
-
getBody2Id
int getBody2Id()Return the ID of the 2nd body. The pair is unaffected.- Returns:
- the
BodyID
value
-
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
SubShapeID
value
-
getSubShapeId2
int getSubShapeId2()Return the ID of the 2nd sub-shape. The pair is unaffected.- Returns:
- a
SubShapeID
value
-