Class PhysicsSceneResult

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

public final class PhysicsSceneResult extends JoltPhysicsObject
Either an error or a PhysicsSceneRef. (native type: Result<Ref<PhysicsScene>>)
  • Method Details

    • get

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