java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.SkinWeight
All Implemented Interfaces:
ConstJoltPhysicsObject, AutoCloseable, Comparable<JoltPhysicsObject>

public class SkinWeight extends JoltPhysicsObject
A joint and its skin weight, for use in skinning calculations. (native type: SoftBodySharedSettings::SkinWeight)
  • 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