Class ConstraintSettingsRef

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

public final class ConstraintSettingsRef extends Ref
A counted reference to a ConstraintSettings object. (native type: Ref<ConstraintSettings>)
  • Constructor Details

    • ConstraintSettingsRef

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

    • getPtr

      public ConstraintSettings getPtr()
      Access the target settings, if any.
      Specified by:
      getPtr in class Ref
      Returns:
      the pre-existing object, or null if the reference is empty
    • targetVa

      public long targetVa()
      Return the address of the native ConstraintSettings. No objects are affected.
      Specified by:
      targetVa in interface ConstJoltPhysicsObject
      Overrides:
      targetVa in class JoltPhysicsObject
      Returns:
      the virtual address, or zero if the reference is empty
    • toRef

      public ConstraintSettingsRef toRef()
      Create an additional counted reference to the targeted settings.
      Specified by:
      toRef in class Ref
      Returns:
      a new JVM object with a new native object assigned