Package com.github.stephengold.joltjni
Class WheeledVehicleControllerSettings
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.NonCopyable
com.github.stephengold.joltjni.SerializableObject
com.github.stephengold.joltjni.VehicleControllerSettings
com.github.stephengold.joltjni.WheeledVehicleControllerSettings
- All Implemented Interfaces:
ConstJoltPhysicsObject,RefTarget,AutoCloseable,Comparable<ConstJoltPhysicsObject>
Settings used to construct a
WheeledVehicleController.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetDifferentialsLeftWheel(int diffIndex, int wheelIndex) Alter the left wheel assigned to the specified differential.voidsetDifferentialsRightWheel(int diffIndex, int wheelIndex) Alter the right wheel assigned to the specified differential.voidsetNumDifferentials(int count) Alter the number of differentials.Methods inherited from class com.github.stephengold.joltjni.VehicleControllerSettings
getRefCount, setEmbedded, toRefMethods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, hasAssignedNativeObject, hashCode, ownsNativeObject, setVirtualAddress, startCleaner, toString, va
-
Constructor Details
-
WheeledVehicleControllerSettings
public WheeledVehicleControllerSettings()Instantiate default settings.
-
-
Method Details
-
setDifferentialsLeftWheel
public void setDifferentialsLeftWheel(int diffIndex, int wheelIndex) Alter the left wheel assigned to the specified differential.- Parameters:
diffIndex- the index of the differential (≥0)wheelIndex- the index of the wheel (≥0)
-
setDifferentialsRightWheel
public void setDifferentialsRightWheel(int diffIndex, int wheelIndex) Alter the right wheel assigned to the specified differential.- Parameters:
diffIndex- the index of the differential (≥0)wheelIndex- the index of the wheel (≥0)
-
setNumDifferentials
public void setNumDifferentials(int count) Alter the number of differentials. (native attribute: mDifferentials)- Parameters:
count- the desired number (≥0)
-