Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
VehicleEngineSettings Class Reference

Generic properties for a vehicle engine. More...

#include <VehicleEngine.h>

Inheritance diagram for VehicleEngineSettings:
VehicleEngine

Public Member Functions

 VehicleEngineSettings ()
 Constructor. More...
 
void SaveBinaryState (StreamOut &inStream) const
 Saves the contents in binary form to inStream. More...
 
void RestoreBinaryState (StreamIn &inStream)
 Restores the contents in binary form to inStream. More...
 

Public Attributes

float mMaxTorque = 500.0f
 Max amount of torque (Nm) that the engine can deliver. More...
 
float mMinRPM = 1000.0f
 Min amount of revolutions per minute (rpm) the engine can produce without stalling. More...
 
float mMaxRPM = 6000.0f
 Max amount of revolutions per minute (rpm) the engine can generate. More...
 
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) More...
 
float mInertia = 0.5f
 Moment of inertia (kg m^2) of the engine. More...
 
float mAngularDamping = 0.2f
 Angular damping factor of the wheel: dw/dt = -c * w. More...
 

Detailed Description

Generic properties for a vehicle engine.

Constructor & Destructor Documentation

◆ VehicleEngineSettings()

VehicleEngineSettings::VehicleEngineSettings ( )

Constructor.

Member Function Documentation

◆ RestoreBinaryState()

void VehicleEngineSettings::RestoreBinaryState ( StreamIn inStream)

Restores the contents in binary form to inStream.

◆ SaveBinaryState()

void VehicleEngineSettings::SaveBinaryState ( StreamOut inStream) const

Saves the contents in binary form to inStream.

Member Data Documentation

◆ mAngularDamping

float VehicleEngineSettings::mAngularDamping = 0.2f

Angular damping factor of the wheel: dw/dt = -c * w.

◆ mInertia

float VehicleEngineSettings::mInertia = 0.5f

Moment of inertia (kg m^2) of the engine.

◆ mMaxRPM

float VehicleEngineSettings::mMaxRPM = 6000.0f

Max amount of revolutions per minute (rpm) the engine can generate.

◆ mMaxTorque

float VehicleEngineSettings::mMaxTorque = 500.0f

Max amount of torque (Nm) that the engine can deliver.

◆ mMinRPM

float VehicleEngineSettings::mMinRPM = 1000.0f

Min amount of revolutions per minute (rpm) the engine can produce without stalling.

◆ mNormalizedTorque

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)


The documentation for this class was generated from the following files: