Interface ConstSoftBodyMotionProperties

All Superinterfaces:
Comparable<JoltPhysicsObject>, ConstJoltPhysicsObject, ConstMotionProperties
All Known Implementing Classes:
SoftBodyMotionProperties

public interface ConstSoftBodyMotionProperties extends ConstMotionProperties
Read-only access to SoftBodyMotionProperties. (native type: const SoftBodyMotionProperties)
  • Method Details

    • getEnableSkinConstraints

      boolean getEnableSkinConstraints()
      Test whether skinning constraints are enabled. The properties are unaffected.
      Returns:
      true if enabled, false if disabled
    • getFace

      ConstFace getFace(int index)
      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

      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

      ConstSoftBodyVertex getVertex(int index)
      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

      void putPinLocations(RVec3Arg comLocation, FloatBuffer storeFloats)
      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

      void putVertexLocations(RVec3Arg comLocation, FloatBuffer storeFloats)
      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)