Class ConstraintRef

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

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

    • getPtr

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

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