Interface ConstVehicleEngineSettings
- All Superinterfaces:
AutoCloseable,Comparable<JoltPhysicsObject>,ConstJoltPhysicsObject
- All Known Implementing Classes:
VehicleEngine,VehicleEngineSettings
Read-only access to a
VehicleEngineSettings object. (native type:
const VehicleEngineSettings)-
Method Summary
Modifier and TypeMethodDescriptionfloatReturn the angular damping factor.floatReturn the engine's rotational inertia.floatReturn the maximum rotation rate.floatReturn the maximum torque.floatReturn the minimum rotation rate to avoid stalling.Access the normalized torque as a function of normalized RPM.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)
-
getInertia
float getInertia()Return the engine's rotational inertia. The settings are unaffected.- Returns:
- the inertia (in kilogram.meter^2)
-
getMaxRpm
float getMaxRpm()Return the maximum rotation rate. The settings are unaffected.- Returns:
- the limit (in revolutions per minute)
-
getMaxTorque
float getMaxTorque()Return the maximum torque. The settings are unaffected.- Returns:
- the limit (in Newton meters)
-
getMinRpm
float getMinRpm()Return the minimum rotation rate to avoid stalling. The settings are unaffected.- Returns:
- the limit (in revolutions per minute)
-
getNormalizedTorque
ConstLinearCurve getNormalizedTorque()Access the normalized torque as a function of normalized RPM.- Returns:
- a new JVM object with the pre-existing native object assigned
-