Interface ConstVehicleTrackSettings
- All Superinterfaces:
AutoCloseable,Comparable<JoltPhysicsObject>,ConstJoltPhysicsObject
- All Known Implementing Classes:
VehicleTrackSettings
Read-only access to a
VehicleTrackSettings object. (native type:
const VehicleTrackSettings)-
Method Summary
Modifier and TypeMethodDescriptionfloatReturn the angular damping factor.floatReturn the number of gearbox rotations per driven-wheel rotation.intReturn the index of the wheel powered by the engine.floatReturn the moment of inertia of the track and its wheels as seen on the driven wheel.intCount the track's wheels.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
-
Method Details
-
getAngularDamping
float getAngularDamping()Return the angular damping factor. The settings are unaffected.- Returns:
- the damping factor (per second)
-
getDifferentialRatio
float getDifferentialRatio()Return the number of gearbox rotations per driven-wheel rotation. The settings are unaffected.- Returns:
- the ratio
-
getDrivenWheel
int getDrivenWheel()Return the index of the wheel powered by the engine. The settings are unaffected.- Returns:
- the index of the driven wheel (≥0)
-
getInertia
float getInertia()Return the moment of inertia of the track and its wheels as seen on the driven wheel. The settings are unaffected.- Returns:
- the moment (in kilogram.meter^2)
-
getNumWheels
int getNumWheels()Count the track's wheels. The settings are unaffected.- Returns:
- the count (≥0)
-