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 Details

    • getRtti

      public Rtti getRtti()
      Access the run-time type information of the current object. (native method: GetRTTI)
      Specified by:
      getRtti in interface ConstSerializableObject
      Returns:
      a new JVM object with the pre-existing native object assigned