java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.InvBind
- All Implemented Interfaces:
ConstJoltPhysicsObject
,AutoCloseable
,Comparable<JoltPhysicsObject>
Transform a skinned vertex from its bind pose to joint local space. (native
type:
SoftBodySharedSettings::InvBind
)-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCopy the inverse-bind transform matrix.int
Return the joint index.Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, va
-
Constructor Details
-
InvBind
public InvBind()Instantiate a default instance. -
InvBind
Instantiate with the specified joint index and coordinate transform.- Parameters:
jointIndex
- the desired joint index (≥0)transform
- the desired inverse-bind transform (not null, unaffected)
-
-
Method Details
-
getInvBind
Copy the inverse-bind transform matrix. The current instance is unaffected. (native attribute: mInvBind)- Returns:
- a new matrix
-
getJointIndex
public int getJointIndex()Return the joint index. The current instance is unaffected. (native attribute: mJointIndex)- Returns:
- the index of the joint (≥0)
-