Jolt Physics
A multi core friendly Game Physics Engine
|
Generic properties for a vehicle engine. More...
#include <VehicleEngine.h>
Public Member Functions | |
VehicleEngineSettings () | |
Constructor. | |
void | SaveBinaryState (StreamOut &inStream) const |
Saves the contents in binary form to inStream. | |
void | RestoreBinaryState (StreamIn &inStream) |
Restores the contents in binary form to inStream. | |
Public Attributes | |
float | mMaxTorque = 500.0f |
Max amount of torque (Nm) that the engine can deliver. | |
float | mMinRPM = 1000.0f |
Min amount of revolutions per minute (rpm) the engine can produce without stalling. | |
float | mMaxRPM = 6000.0f |
Max amount of revolutions per minute (rpm) the engine can generate. | |
LinearCurve | mNormalizedTorque |
Y-axis: Curve that describes a ratio of the max torque the engine can produce (0 = 0, 1 = mMaxTorque). X-axis: the fraction of the RPM of the engine (0 = mMinRPM, 1 = mMaxRPM) | |
float | mInertia = 0.5f |
Moment of inertia (kg m^2) of the engine. | |
float | mAngularDamping = 0.2f |
Angular damping factor of the wheel: dw/dt = -c * w. | |
Generic properties for a vehicle engine.
VehicleEngineSettings::VehicleEngineSettings | ( | ) |
Constructor.
void VehicleEngineSettings::RestoreBinaryState | ( | StreamIn & | inStream | ) |
Restores the contents in binary form to inStream.
void VehicleEngineSettings::SaveBinaryState | ( | StreamOut & | inStream | ) | const |
Saves the contents in binary form to inStream.
float VehicleEngineSettings::mAngularDamping = 0.2f |
Angular damping factor of the wheel: dw/dt = -c * w.
float VehicleEngineSettings::mInertia = 0.5f |
Moment of inertia (kg m^2) of the engine.
float VehicleEngineSettings::mMaxRPM = 6000.0f |
Max amount of revolutions per minute (rpm) the engine can generate.
float VehicleEngineSettings::mMaxTorque = 500.0f |
Max amount of torque (Nm) that the engine can deliver.
float VehicleEngineSettings::mMinRPM = 1000.0f |
Min amount of revolutions per minute (rpm) the engine can produce without stalling.
LinearCurve VehicleEngineSettings::mNormalizedTorque |
Y-axis: Curve that describes a ratio of the max torque the engine can produce (0 = 0, 1 = mMaxTorque). X-axis: the fraction of the RPM of the engine (0 = mMinRPM, 1 = mMaxRPM)