Interface ConstHairMaterial
- All Superinterfaces:
AutoCloseable,Comparable<JoltPhysicsObject>,ConstJoltPhysicsObject
- All Known Implementing Classes:
HairMaterial
Read-only access to a
HairMaterial. (native type:
const HairSettings::Material)-
Method Summary
Modifier and TypeMethodDescriptionfloatReturn the angular damping coefficient of the rods.floatReturn the compliance of bend constraints, the inverse of bend stiffness.Copy the multiples of bend compliance to be applied to the strand at 0%, 33%, 66% and 100% of its length.booleanTest whether collisions between hair strands and the environment are enabled.booleanTest whether long-range attachments are enabled to keep hair near its modeled pose.floatReturn the friction coefficient for collisions between hair strands and the environment.Access the fraction of the neutral pose applied to hair during each iteration.Access the fraction of gravity to be applied to the hair during simulation.floatReturn the fraction of gravity to be removed during initialization.floatReturn the force factor pushing the hair toward neutral density.Access the fraction of grid velocity to be applied to the hair.Access the radius of the hair strand.floatReturn the inertia of each rod as a multiple of its mass.floatReturn the linear damping coefficient of the rods.floatReturn the maximum angular rate of vertices.floatReturn the maximum speed of vertices.floatReturn the fraction of strands that should be simulated.Access how strongly the scalp influences the global pose.floatReturn the compliance of stretch constraints, the inverse of stretch stiffness.Access the influence of head rotation on hair.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
-
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:
trueif enabled, otherwisefalse
-
getEnableLra
boolean getEnableLra()Test whether long-range attachments are enabled to keep hair near its modeled pose. The material is unaffected.- Returns:
trueif enabled, otherwisefalse
-
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 byInitRenderAndSimulationStrandsonly. 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
-