Package com.github.stephengold.joltjni
Class VehicleController
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.NonCopyable
com.github.stephengold.joltjni.VehicleController
- All Implemented Interfaces:
ConstJoltPhysicsObject
,ConstVehicleController
,AutoCloseable
,Comparable<JoltPhysicsObject>
- Direct Known Subclasses:
TrackedVehicleController
,WheeledVehicleController
Control the acceleration and deceleration of a vehicle.
-
Method Summary
Modifier and TypeMethodDescriptionAccess the underlying constraint.Recreate the settings for this controller.Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, isCleanerStarted, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, 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, targetVa
-
Method Details
-
getConstraint
Access the underlying constraint.- Returns:
- the pre-existing object or
null
-
getSettings
Recreate the settings for this controller. The controller is unaffected.- Specified by:
getSettings
in interfaceConstVehicleController
- Returns:
- a new settings object
-