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.SkinWeight(SkinWeight original) Instantiate a copy of the specified weight. -
Method Summary
Modifier and TypeMethodDescriptionintReturn the index into the array of inverse-bind matrices.floatReturn the weight (relative influence).voidset(SkinWeight source) Copy the argument to the current weight.Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, isCleanerStarted, 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
-
SkinWeight
Instantiate a copy of the specified weight.- Parameters:
original- the settings to copy (notnull, unaffected)
-
-
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
-
set
Copy the argument to the current weight.- Parameters:
source- the weight to copy (notnull, unaffected)
-