Interface ConstSoftBodySharedSettings
- All Superinterfaces:
Comparable<JoltPhysicsObject>
,ConstJoltPhysicsObject
- All Known Implementing Classes:
SoftBodySharedSettings
,SoftBodySharedSettingsRef
Read-only access to a
SoftBodySharedSettings
object. (native type:
const SoftBodySharedSettings)-
Method Summary
Modifier and TypeMethodDescriptionint
Count the edge constraints.int
Count the faces.int
Count the pinned vertices.int
Count the vertices.int
Count the volume constraints.float
Return the radius of each particle.void
putEdgeIndices
(IntBuffer storeIndices) Write the vertex indices of all edges to the specified buffer and advance the buffer's position.void
putFaceIndices
(IntBuffer storeIndices) Write the vertex indices of all faces to the specified buffer and advance the buffer's position.Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
-
Method Details
-
countEdgeConstraints
int countEdgeConstraints()Count the edge constraints. The settings are unaffected.- Returns:
- the count (≥0)
-
countFaces
int countFaces()Count the faces. The settings are unaffected.- Returns:
- the count (≥0)
-
countPinnedVertices
int countPinnedVertices()Count the pinned vertices. The settings are unaffected.- Returns:
- the count (≥0)
-
countVertices
int countVertices()Count the vertices. The settings are unaffected.- Returns:
- the count (≥0)
-
countVolumeConstraints
int countVolumeConstraints()Count the volume constraints. The settings are unaffected.- Returns:
- the count (≥0)
-
getVertexRadius
float getVertexRadius()Return the radius of each particle. The settings are unaffected.- Returns:
- the radius (in meters)
-
putEdgeIndices
Write the vertex indices of all edges to the specified buffer and advance the buffer's position. The settings are unaffected.- Parameters:
storeIndices
- the destination buffer (not null, modified)
-
putFaceIndices
Write the vertex indices of all faces to the specified buffer and advance the buffer's position. The settings are unaffected.- Parameters:
storeIndices
- the destination buffer (not null, modified)
-