Interface ConstHairSettings
- All Superinterfaces:
AutoCloseable,Comparable<JoltPhysicsObject>,ConstJoltPhysicsObject
- All Known Implementing Classes:
HairSettings,HairSettingsRef
Read-only access to a
HairSettings object. (native type: const
HairSettings)-
Method Summary
Modifier and TypeMethodDescriptionintReturn the number of materials.intReturn the number of render strands.intReturn the number of render vertices.intReturn the number of triangles in the scalp mesh.intReturn the number of vertices in the scalp mesh.intReturn the number of simulation strands.Copy the initial gravity vector.getMaterial(int index) Access the specified material.intReturn the iteration rate.getRenderStrand(int strandIndex) Access the specified render strand.intAlter the number of skinning weights per vertex.getScalpTriangle(int triangleIndex) Access the vertex indices of the specified triangle in the scalp mesh.getScalpVertex(int vertexIndex) Copy the specified vertex in the scalp mesh.getSimStrand(int strandIndex) Access the specified simulation strand.Access the simulation bounds.voidsaveBinaryState(StreamOut streamOut) Write the state of this object to the specified stream, excluding the compute buffers.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
-
Method Details
-
countMaterials
int countMaterials()Return the number of materials. The settings are unaffected.- Returns:
- the count (≥0)
-
countRenderStrands
int countRenderStrands()Return the number of render strands. The settings are unaffected.- Returns:
- the count (≥0)
-
countRenderVertices
int countRenderVertices()Return the number of render vertices. The settings are unaffected.- Returns:
- the count (≥0)
-
countScalpTriangles
int countScalpTriangles()Return the number of triangles in the scalp mesh. The settings are unaffected.- Returns:
- the count (≥0)
-
countScalpVertices
int countScalpVertices()Return the number of vertices in the scalp mesh. The settings are unaffected.- Returns:
- the count (≥0)
-
countSimStrands
int countSimStrands()Return the number of simulation strands. The settings are unaffected.- Returns:
- the count (≥0)
-
getInitialGravity
Vec3 getInitialGravity()Copy the initial gravity vector. The settings are unaffected.- Returns:
- a new vector (in meters per second squared)
-
getMaterial
Access the specified material. The settings are unaffected.- Parameters:
index- the index of the material to access (≥0)- Returns:
- a new JVM object with the pre-existing native object assigned
-
getNumIterationsPerSecond
int getNumIterationsPerSecond()Return the iteration rate. The settings are unaffected.- Returns:
- the number of iterations per second (≥1)
-
getRenderStrand
Access the specified render strand. The settings are unaffected.- Parameters:
strandIndex- the index of the strand to access (≥0)- Returns:
- a new JVM object with the pre-existing native object assigned
-
getScalpNumSkinWeightsPerVertex
int getScalpNumSkinWeightsPerVertex()Alter the number of skinning weights per vertex. The settings are unaffected.- Returns:
- the number of weights per vertex
-
getScalpTriangle
Access the vertex indices of the specified triangle in the scalp mesh. The settings are unaffected.- Parameters:
triangleIndex- the index of the triangle to access (≥0)- Returns:
- a new JVM object with the pre-existing native object assigned
-
getScalpVertex
Copy the specified vertex in the scalp mesh. The settings are unaffected.- Parameters:
vertexIndex- the index of the vertex to access (≥0)- Returns:
- a new vector
-
getSimStrand
Access the specified simulation strand. The settings are unaffected.- Parameters:
strandIndex- the index of the strand to access (≥0)- Returns:
- a new JVM object with the pre-existing native object assigned
-
getSimulationBounds
ConstAaBox getSimulationBounds()Access the simulation bounds. The settings are unaffected.- Returns:
- a new JVM object with the pre-existing native object assigned
-
saveBinaryState
Write the state of this object to the specified stream, excluding the compute buffers. The settings are unaffected.- Parameters:
streamOut- where to write objects (notnull)
-