Package com.github.stephengold.joltjni
Class SubShapeIdCreator
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.SubShapeIdCreator
- All Implemented Interfaces:
- ConstJoltPhysicsObject,- AutoCloseable,- Comparable<JoltPhysicsObject>
Generate sub-shape IDs by traversing the shape hierarchy. (native type:
 SubShapeIDCreator)
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class com.github.stephengold.joltjni.JoltPhysicsObjectclose, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, isCleanerStarted, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, va
- 
Constructor Details- 
SubShapeIdCreatorpublic SubShapeIdCreator()Instantiate a default creator.
 
- 
- 
Method Details- 
getIdpublic int getId()Return the resulting subshape ID. (native function: GetID)- Returns:
- the ID value
 
- 
getNumBitsWrittenpublic int getNumBitsWritten()Return the number of bits written to the subshape ID so far.- Returns:
- the bit count
 
- 
pushIdPush a new ID to the chain.- Parameters:
- value- the value to push
- bits- the number of bits
- Returns:
- the modified chain
 
 
-