Interface ConstVehicleDifferentialSettings
- All Superinterfaces:
AutoCloseable,Comparable<JoltPhysicsObject>,ConstJoltPhysicsObject
- All Known Implementing Classes:
VehicleDifferentialSettings
Read-only access to a
VehicleDifferentialSettings object. (native
type: const VehicleDifferentialSettings)-
Method Summary
Modifier and TypeMethodDescriptionfloatReturn the number of gearbox rotations per wheel rotation.floatReturn the fraction of the engine's torque that is applied to this differential.floatReturn the fraction of the engine's torque that is applied to the right wheel.intReturn the index of the left wheel.floatReturn the ratio of maximum wheel speed to minimum wheel speed.intReturn the index of the right wheel.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
-
Method Details
-
getDifferentialRatio
float getDifferentialRatio()Return the number of gearbox rotations per wheel rotation. The settings are unaffected.- Returns:
- the ratio
-
getEngineTorqueRatio
float getEngineTorqueRatio()Return the fraction of the engine's torque that is applied to this differential. The settings are unaffected.- Returns:
- the fraction
-
getLeftRightSplit
float getLeftRightSplit()Return the fraction of the engine's torque that is applied to the right wheel. The settings are unaffected.- Returns:
- the desired fraction (all left=0, all right=1)
-
getLeftWheel
int getLeftWheel()Return the index of the left wheel. The settings are unaffected.- Returns:
- the index of the wheel (≥0) or -1 for none
-
getLimitedSlipRatio
float getLimitedSlipRatio()Return the ratio of maximum wheel speed to minimum wheel speed. The settings are unaffected.- Returns:
- the ratio (>1,
FLT_MAXfor an open differential)
-
getRightWheel
int getRightWheel()Return the index of the right wheel. The settings are unaffected.- Returns:
- the index of the wheel (≥0) or -1 for none
-