Interface ConstSoftBodyMotionProperties
- All Superinterfaces:
Comparable<JoltPhysicsObject>
,ConstJoltPhysicsObject
,ConstMotionProperties
- All Known Implementing Classes:
SoftBodyMotionProperties
Read-only access to
SoftBodyMotionProperties
. (native type: const
SoftBodyMotionProperties)-
Method Summary
Modifier and TypeMethodDescriptionboolean
Test whether skinning constraints are enabled.getFace
(int index) Access the specified face.getFaces()
Enumerate all faces in the soft body.int
Return the number of solver iterations.Access the shared settings.float
Return the maximum distance multiplier for skinned vertices.getVertex
(int index) Access the specified vertex.Enumerate all vertices in the soft body.void
putPinLocations
(RVec3Arg comLocation, FloatBuffer storeFloats) Write the locations of all pinned vertices to the specified buffer and advance the buffer's position.void
putVertexLocations
(RVec3Arg comLocation, FloatBuffer storeFloats) Write the locations of all vertices 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
Methods inherited from interface com.github.stephengold.joltjni.readonly.ConstMotionProperties
getAccumulatedForce, getAccumulatedTorque, getAllowedDofs, getAllowSleeping, getAngularDamping, getAngularDofsMask, getAngularVelocity, getGravityFactor, getInertiaRotation, getInverseInertiaDiagonal, getInverseMass, getInverseMassUnchecked, getLinearDamping, getLinearVelocity, getLocalSpaceInverseInertia, getMaxAngularVelocity, getMaxLinearVelocity, getMotionQuality, getNumPositionStepsOverride, getNumVelocityStepsOverride
-
Method Details
-
getEnableSkinConstraints
boolean getEnableSkinConstraints()Test whether skinning constraints are enabled. The properties are unaffected.- Returns:
true
if enabled,false
if disabled
-
getFace
Access the specified face.- Parameters:
index
- the index of the face (≥0)- Returns:
- a new JVM object with the pre-existing native object assigned
-
getFaces
ConstFace[] getFaces()Enumerate all faces in the soft body.- Returns:
- a new array of new JVM objects
-
getNumIterations
int getNumIterations()Return the number of solver iterations. The properties are unaffected.- Returns:
- the number of iterations (≥0)
-
getSettings
ConstSoftBodySharedSettings getSettings()Access the shared settings.- Returns:
- a new JVM object with the pre-existing native object assigned
-
getSkinnedMaxDistanceMultiplier
float getSkinnedMaxDistanceMultiplier()Return the maximum distance multiplier for skinned vertices. The properties are unaffected.- Returns:
- the multiplier
-
getVertex
Access the specified vertex.- Parameters:
index
- the index of the vertex (≥0)- Returns:
- a new JVM object with the pre-existing native object assigned
-
getVertices
ConstSoftBodyVertex[] getVertices()Enumerate all vertices in the soft body.- Returns:
- a new array of new JVM objects with pre-existing native objects assigned
-
putPinLocations
Write the locations of all pinned vertices to the specified buffer and advance the buffer's position. The properties are unaffected.- Parameters:
comLocation
- the location of the body's center of mass (not null)storeFloats
- the destination buffer (not null, modified)
-
putVertexLocations
Write the locations of all vertices to the specified buffer and advance the buffer's position. The properties are unaffected.- Parameters:
comLocation
- the location of the body's center of mass (not null)storeFloats
- the destination buffer (not null, modified)
-