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

public final class GeometryRef extends Ref
A counted reference to a Geometry. (native type: Ref<DebugRenderer::Geometry>)
  • Constructor Details

    • GeometryRef

      public GeometryRef()
      Instantiate an empty reference.
  • Method Details

    • getPtr

      public Geometry getPtr()
      Temporarily access the referenced Geometry.
      Specified by:
      getPtr in class Ref
      Returns:
      a new JVM object with the pre-existing native object assigned
    • targetVa

      public long targetVa()
      Return the address of the native Geometry. No objects are affected.
      Specified by:
      targetVa in interface ConstJoltPhysicsObject
      Overrides:
      targetVa in class JoltPhysicsObject
      Returns:
      a virtual address (not zero)
    • toRef

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