All Implemented Interfaces:
ConstJoltPhysicsObject, ConstRStrand, AutoCloseable, Comparable<JoltPhysicsObject>
Direct Known Subclasses:
SStrand

public class RStrand extends JoltPhysicsObject implements ConstRStrand
A rendered strand of hair. (native type: HairSettings::RStrand)
  • Constructor Details

    • RStrand

      public RStrand()
      Instantiate a default strand.
    • RStrand

      public RStrand(int startVertex, int endVertex)
      Instantiate a strand with the specified vertices.
      Parameters:
      startVertex - the index of the first vertex (≥0)
      endVertex - the index of the last vertex (≥0)
  • Method Details

    • getEndVtx

      public int getEndVtx()
      Return the index of the ending vertex. The strand is unaffected. (native attribute: mEndVtx)
      Specified by:
      getEndVtx in interface ConstRStrand
      Returns:
      the vertex index
    • getStartVtx

      public int getStartVtx()
      Return the index of the starting vertex. The strand is unaffected. (native attribute: mStartVtx)
      Specified by:
      getStartVtx in interface ConstRStrand
      Returns:
      the vertex index
    • vertexCount

      public int vertexCount()
      Return the number of vertices in the strand.
      Specified by:
      vertexCount in interface ConstRStrand
      Returns:
      the count