Class PhysicsMaterialRef

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

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

    • getPtr

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

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