Interface ConstHairMaterial

All Superinterfaces:
AutoCloseable, Comparable<JoltPhysicsObject>, ConstJoltPhysicsObject
All Known Implementing Classes:
HairMaterial

public interface ConstHairMaterial extends ConstJoltPhysicsObject
Read-only access to a HairMaterial. (native type: const HairSettings::Material)
  • Method Details

    • getAngularDamping

      float getAngularDamping()
      Return the angular damping coefficient of the rods. The material is unaffected.
      Returns:
      the coefficient
    • getBendCompliance

      float getBendCompliance()
      Return the compliance of bend constraints, the inverse of bend stiffness. The material is unaffected.
      Returns:
      the compliance value
    • getBendComplianceMultiplier

      Float4 getBendComplianceMultiplier()
      Copy the multiples of bend compliance to be applied to the strand at 0%, 33%, 66% and 100% of its length.
      Returns:
      a new object
    • getEnableCollision

      boolean getEnableCollision()
      Test whether collisions between hair strands and the environment are enabled. The material is unaffected.
      Returns:
      true if enabled, otherwise false
    • getEnableLra

      boolean getEnableLra()
      Test whether long-range attachments are enabled to keep hair near its modeled pose. The material is unaffected.
      Returns:
      true if enabled, otherwise false
    • getFriction

      float getFriction()
      Return the friction coefficient for collisions between hair strands and the environment. The material is unaffected.
      Returns:
      the friction coefficient
    • getGlobalPose

      ConstGradient getGlobalPose()
      Access the fraction of the neutral pose applied to hair during each iteration. The material is unaffected.
      Returns:
      a new JVM object with the pre-existing native object assigned
    • getGravityFactor

      ConstGradient getGravityFactor()
      Access the fraction of gravity to be applied to the hair during simulation. The material is unaffected.
      Returns:
      a new JVM object with the pre-existing native object assigned
    • getGravityPreloadFactor

      float getGravityPreloadFactor()
      Return the fraction of gravity to be removed during initialization. The material is unaffected.
      Returns:
      the fraction
    • getGridDensityForceFactor

      float getGridDensityForceFactor()
      Return the force factor pushing the hair toward neutral density. The material is unaffected.
      Returns:
      the force factor
    • getGridVelocityFactor

      ConstGradient getGridVelocityFactor()
      Access the fraction of grid velocity to be applied to the hair. The material is unaffected.
      Returns:
      a new JVM object with the pre-existing native object assigned
    • getHairRadius

      ConstGradient getHairRadius()
      Access the radius of the hair strand. The material is unaffected.
      Returns:
      a new JVM object with the pre-existing native object assigned
    • getInertiaMultiplier

      float getInertiaMultiplier()
      Return the inertia of each rod as a multiple of its mass. The material is unaffected.
      Returns:
      the ratio
    • getLinearDamping

      float getLinearDamping()
      Return the linear damping coefficient of the rods. The material is unaffected.
      Returns:
      the damping coefficient
    • getMaxAngularVelocity

      float getMaxAngularVelocity()
      Return the maximum angular rate of vertices. The material is unaffected.
      Returns:
      the rate limit (in radians per second)
    • getMaxLinearVelocity

      float getMaxLinearVelocity()
      Return the maximum speed of vertices. The material is unaffected.
      Returns:
      the speed limit (in meters per second)
    • getSimulationStrandsFraction

      float getSimulationStrandsFraction()
      Return the fraction of strands that should be simulated. Used by InitRenderAndSimulationStrands only. The material is unaffected.
      Returns:
      the fraction
    • getSkinGlobalPose

      ConstGradient getSkinGlobalPose()
      Access how strongly the scalp influences the global pose. The material is unaffected.
      Returns:
      a new JVM object with the pre-existing native object assigned
    • getStretchCompliance

      float getStretchCompliance()
      Return the compliance of stretch constraints, the inverse of stretch stiffness. The material is unaffected.
      Returns:
      the compliance value
    • getWorldTransformInfluence

      ConstGradient getWorldTransformInfluence()
      Access the influence of head rotation on hair. The material is unaffected.
      Returns:
      a new JVM object with the pre-existing native object assigned