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

public final class ShapeResult extends JoltPhysicsObject
Either an error or a ShapeRefC. (native type: Result<Ref<Shape>>)
  • Method Details

    • get

      public ShapeRefC get()
      Return the ShapeRefC.
      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 ShapeRefC is valid.
      Returns:
      true if valid, otherwise false