java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.template.Ref
com.github.stephengold.joltjni.ShapeSettingsRef
- All Implemented Interfaces:
ConstJoltPhysicsObject
,ConstShapeSettings
,AutoCloseable
,Comparable<JoltPhysicsObject>
A counted reference to a
ShapeSettings
. (native type:
Ref<ShapeSettings>
)-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate()
Generate aShapeResult
from the referencedShapeSettings
.getPtr()
Temporarily access the referencedShapeSettings
.long
targetVa()
Return the address of the nativeShapeSettings
.toRef()
Create another counted reference to the nativeShapeSettings
.toRefC()
Create a counted reference to the nativeShapeSettings
.Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, toString, va
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject
-
Constructor Details
-
ShapeSettingsRef
public ShapeSettingsRef()Instantiate an empty reference.
-
-
Method Details
-
create
Generate aShapeResult
from the referencedShapeSettings
.- Specified by:
create
in interfaceConstShapeSettings
- Returns:
- a new JVM object with a new native object assigned
-
toRefC
Create a counted reference to the nativeShapeSettings
.- Specified by:
toRefC
in interfaceConstShapeSettings
- Returns:
- a new JVM object with a new native object assigned
-
getPtr
Temporarily access the referencedShapeSettings
. -
targetVa
public long targetVa()Return the address of the nativeShapeSettings
. No objects are affected.- Specified by:
targetVa
in interfaceConstJoltPhysicsObject
- Overrides:
targetVa
in classJoltPhysicsObject
- Returns:
- a virtual address (not zero)
-
toRef
Create another counted reference to the nativeShapeSettings
.
-