Interface ConstSoftBodySharedSettings

All Superinterfaces:
Comparable<JoltPhysicsObject>, ConstJoltPhysicsObject
All Known Implementing Classes:
SoftBodySharedSettings, SoftBodySharedSettingsRef

public interface ConstSoftBodySharedSettings extends ConstJoltPhysicsObject
Read-only access to a SoftBodySharedSettings object. (native type: const SoftBodySharedSettings)
  • 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)
    • countRodBendTwistConstraints

      int countRodBendTwistConstraints()
      Count the bend-twist constraints. The settings are unaffected.
      Returns:
      the count (≥0)
    • countRodStretchShearConstraints

      int countRodStretchShearConstraints()
      Count the discrete Cosserat rods. 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)
    • getRodStretchShearConstraints

      ConstRodStretchShear[] getRodStretchShearConstraints()
      Enumerate all Cosserat rods in the settings. (native member: mRodStretchShearConstraints)
      Returns:
      a new array of new JVM objects with the pre-existing native objects assigned
    • putEdgeIndices

      void putEdgeIndices(IntBuffer storeIndices)
      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

      void putFaceIndices(IntBuffer storeIndices)
      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)
    • saveBinaryState

      void saveBinaryState(StreamOut stream)
      Write the state of this object to the specified stream, excluding the materials. The settings are unaffected.
      Parameters:
      stream - where to write objects (not null)
    • saveWithMaterials

      void saveWithMaterials(StreamOut stream, SharedSettingsToIdMap settingsMap, MaterialToIdMap materialMap)
      Write the state of this object to the specified stream. The settings are unaffected.
      Parameters:
      stream - where to write objects (not null)
      settingsMap - track multiple uses of shared settings (not null)
      materialMap - track multiple uses of physics materials (not null)