Class RagdollResult

java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.RagdollResult
All Implemented Interfaces:
ConstJoltPhysicsObject, AutoCloseable, Comparable<JoltPhysicsObject>

public final class RagdollResult extends JoltPhysicsObject
Either an error or a RagdollSettingsRef. (native type: Result<Ref<RagdollSettings>>)
  • Method Details

    • get

      public RagdollSettingsRef get()
      Copy the RagdollSettingsRef.
      Returns:
      a new JVM object with a new native object assigned
    • getError

      public String getError()
      Return the error string.
      Returns:
      the string
    • hasError

      public boolean hasError()
      Test whether there was an error.
      Returns:
      true if error, otherwise false
    • isValid

      public boolean isValid()
      Test whether the RagdollSettingsRef is valid.
      Returns:
      true if valid, otherwise false