Class VehicleControllerSettings

All Implemented Interfaces:
ConstJoltPhysicsObject, ConstSerializableObject, ConstVehicleControllerSettings, RefTarget, AutoCloseable, Comparable<JoltPhysicsObject>
Direct Known Subclasses:
TrackedVehicleControllerSettings, WheeledVehicleControllerSettings

public class VehicleControllerSettings extends SerializableObject implements ConstVehicleControllerSettings, RefTarget
Settings used to construct a VehicleController.
  • Method Details

    • restoreBinaryState

      public void restoreBinaryState(StreamIn stream)
      Load the settings from the specified binary stream.
      Parameters:
      stream - the stream to read from (not null)
    • saveBinaryState

      public void saveBinaryState(StreamOut stream)
      Save the settings to the specified binary stream. The settings are unaffected.
      Specified by:
      saveBinaryState in interface ConstVehicleControllerSettings
      Parameters:
      stream - the stream to write to (not null)
    • getRefCount

      public int getRefCount()
      Count the active references to the native VehicleControllerSettings. The settings are unaffected.
      Specified by:
      getRefCount in interface RefTarget
      Returns:
      the count (≥0)
    • setEmbedded

      public void setEmbedded()
      Mark the native VehicleControllerSettings as embedded.
      Specified by:
      setEmbedded in interface RefTarget
    • toRef

      Create a counted reference to the native VehicleControllerSettings.
      Specified by:
      toRef in interface RefTarget
      Returns:
      a new JVM object with a new native object assigned