Package com.github.stephengold.joltjni
Class SerializableObject
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.SerializableObject
- All Implemented Interfaces:
ConstJoltPhysicsObject,ConstSerializableObject,RefTarget,AutoCloseable,Comparable<JoltPhysicsObject>
- Direct Known Subclasses:
ConstraintSettings,GroupFilter,PathConstraintPath,PhysicsMaterial,ShapeSettings,VehicleControllerSettings,WheelSettings
public abstract class SerializableObject
extends JoltPhysicsObject
implements ConstSerializableObject, RefTarget
A physics object that can be serialized (saved) and de-serialized (restored).
-
Method Summary
Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, isCleanerStarted, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, vaMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVaMethods inherited from interface com.github.stephengold.joltjni.template.RefTarget
getRefCount, setEmbedded, toRef
-
Method Details
-
getRtti
Access the run-time type information of the current object. (native function: GetRTTI)- Specified by:
getRttiin interfaceConstSerializableObject- Returns:
- a new JVM object with the pre-existing native object assigned
-