Class ShapeRef

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

public final class ShapeRef extends Ref
A counted reference to a Shape. (native type: Ref<Shape>)
  • Method Details

    • getPtr

      public Shape getPtr()
      Temporarily access the referenced Shape.
      Specified by:
      getPtr in class Ref
      Returns:
      a new JVM object that refers to the pre-existing native object
    • toRef

      public ShapeRef toRef()
      Create a counted reference to the native Shape.
      Specified by:
      toRef in class Ref
      Returns:
      a new JVM object with a new native object assigned