Class PhysicsSceneResult

All Implemented Interfaces:
ConstJoltPhysicsObject, AutoCloseable, Comparable<JoltPhysicsObject>

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

    • get

      public PhysicsSceneRef get()
      Return the PhysicsSceneRef.
      Specified by:
      get in class Result<PhysicsSceneRef>
      Returns:
      a new JVM object with a new native object assigned
    • getError

      protected String getError(long resultVa)
      Description copied from class: Result
      Return the error message.
      Specified by:
      getError in class Result<PhysicsSceneRef>
      Parameters:
      resultVa - the virtual address of the result (not zero)
      Returns:
      a string of text
    • hasError

      protected boolean hasError(long resultVa)
      Description copied from class: Result
      Test whether an error occurred.
      Specified by:
      hasError in class Result<PhysicsSceneRef>
      Parameters:
      resultVa - the virtual address of the result (not zero)
      Returns:
      true if error, otherwise false
    • isValid

      protected boolean isValid(long resultVa)
      Description copied from class: Result
      Test whether the value returned by get() is valid.
      Specified by:
      isValid in class Result<PhysicsSceneRef>
      Parameters:
      resultVa - the virtual address of the result (not zero)
      Returns:
      true if valid, otherwise false