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