All Implemented Interfaces:
ConstJoltPhysicsObject, ConstRStrand, ConstSStrand, AutoCloseable, Comparable<JoltPhysicsObject>

public class SStrand extends RStrand implements ConstSStrand
A single strand of hair. (native type: HairSettings::SStrand)
  • 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:
      getMaterialIndex in interface ConstSStrand
      Returns:
      the material index