Class ShapeSettingsRef

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

public final class ShapeSettingsRef extends Ref implements ConstShapeSettings
A counted reference to a ShapeSettings. (native type: Ref<ShapeSettings>)
  • Constructor Details

    • ShapeSettingsRef

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

    • create

      public ShapeResult create()
      Generate a ShapeResult from the referenced ShapeSettings.
      Specified by:
      create in interface ConstShapeSettings
      Returns:
      a new JVM object with a new native object assigned
    • toRefC

      public ShapeSettingsRefC toRefC()
      Create a counted reference to the native ShapeSettings.
      Specified by:
      toRefC in interface ConstShapeSettings
      Returns:
      a new JVM object with a new native object assigned
    • getPtr

      public ShapeSettings getPtr()
      Temporarily access the referenced ShapeSettings.
      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 ShapeSettings. No objects are affected.
      Specified by:
      targetVa in interface ConstJoltPhysicsObject
      Overrides:
      targetVa in class JoltPhysicsObject
      Returns:
      a virtual address (not zero)
    • toRef

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