java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.RStrand
com.github.stephengold.joltjni.SStrand
- All Implemented Interfaces:
ConstJoltPhysicsObject,ConstRStrand,ConstSStrand,AutoCloseable,Comparable<JoltPhysicsObject>
A single strand of hair. (native type:
HairSettings::SStrand)-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.github.stephengold.joltjni.RStrand
getEndVtx, getStartVtx, vertexCountMethods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, isCleanerStarted, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, vaMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVaMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstRStrand
getEndVtx, getStartVtx, vertexCount
-
Constructor Details
-
SStrand
public SStrand()Instantiate a default strand. -
SStrand
public SStrand(int startVertex, int endVertex, int materialIndex) Instantiate a strand with the specified parameters.- Parameters:
startVertex- the index of the first vertex (≥0)endVertex- the index of the last vertex (≥0)materialIndex- the index of the strand's material (≥0)
-
-
Method Details
-
getMaterialIndex
public int getMaterialIndex()Return the index of the material. The strand is unaffected. (native attribute: mMaterialIndex)- Specified by:
getMaterialIndexin interfaceConstSStrand- Returns:
- the material index
-