java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.SkinWeight
- All Implemented Interfaces:
ConstJoltPhysicsObject
,AutoCloseable
,Comparable<JoltPhysicsObject>
A joint and its skin weight, for use in skinning calculations. (native type:
SoftBodySharedSettings::SkinWeight
)-
Constructor Summary
ConstructorsConstructorDescriptionInstantiate a default instance.SkinWeight
(int invBindIndex, float weight) Instantiate with the specified index and weight. -
Method Summary
Modifier and TypeMethodDescriptionint
Return the index into the array of inverse-bind matrices.float
Return the weight (relative influence).Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, va
-
Constructor Details
-
SkinWeight
public SkinWeight()Instantiate a default instance. -
SkinWeight
public SkinWeight(int invBindIndex, float weight) Instantiate with the specified index and weight.- Parameters:
invBindIndex
- the desired index into the array of inverse-bind matrices (≥0)weight
- the desired weight (relative influence) for skinning
-
-
Method Details
-
getInvBindIndex
public int getInvBindIndex()Return the index into the array of inverse-bind matrices.- Returns:
- the index (≥0)
-
getWeight
public float getWeight()Return the weight (relative influence).- Returns:
- the weight value for skinning
-