Package com.github.stephengold.joltjni
Class PhysicsMaterialRef
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.template.Ref
com.github.stephengold.joltjni.PhysicsMaterialRef
- All Implemented Interfaces:
- ConstJoltPhysicsObject,- AutoCloseable,- Comparable<JoltPhysicsObject>
A counted reference to a 
PhysicsMaterial. (native type:
 Ref<PhysicsMaterial>)- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetPtr()Temporarily access the referencedPhysicsMaterial.Temporarily access the referenced material, assuming it is aPhysicsMaterialSimple.longtargetVa()Return the address of the nativePhysicsMaterial.toRef()Create another counted reference to the nativePhysicsMaterial.Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObjectclose, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, isCleanerStarted, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, toString, va
- 
Constructor Details- 
PhysicsMaterialRefpublic PhysicsMaterialRef()Instantiate an empty reference.
 
- 
- 
Method Details- 
getPtrAsSimpleTemporarily access the referenced material, assuming it is aPhysicsMaterialSimple.- Returns:
- a new JVM object with the pre-existing native object assigned
 
- 
getPtrTemporarily access the referencedPhysicsMaterial.
- 
targetVapublic long targetVa()Return the address of the nativePhysicsMaterial. No objects are affected.- Specified by:
- targetVain interface- ConstJoltPhysicsObject
- Overrides:
- targetVain class- JoltPhysicsObject
- Returns:
- a virtual address (not zero)
 
- 
toRefCreate another counted reference to the nativePhysicsMaterial.
 
-