Jolt Physics
A multi core friendly Game Physics Engine
|
Runtime data for tank tracks. More...
#include <VehicleTrack.h>
Public Member Functions | |
void | SaveState (StateRecorder &inStream) const |
Saving state for replay. | |
void | RestoreState (StateRecorder &inStream) |
Public Member Functions inherited from VehicleTrackSettings | |
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 | mAngularVelocity = 0.0f |
Angular velocity of the driven wheel, will determine the speed of the entire track. | |
Public Attributes inherited from VehicleTrackSettings | |
uint | mDrivenWheel |
Which wheel on the track is connected to the engine. | |
Array< uint > | mWheels |
Indices of wheels that are inside this track, should include the driven wheel too. | |
float | mInertia = 10.0f |
Moment of inertia (kg m^2) of the track and its wheels as seen on the driven wheel. | |
float | mAngularDamping = 0.5f |
Damping factor of track and its wheels: dw/dt = -c * w as seen on the driven wheel. | |
float | mMaxBrakeTorque = 15000.0f |
How much torque (Nm) the brakes can apply on the driven wheel. | |
float | mDifferentialRatio = 6.0f |
Ratio between rotation speed of gear box and driven wheel of track. | |
Runtime data for tank tracks.
void VehicleTrack::RestoreState | ( | StateRecorder & | inStream | ) |
void VehicleTrack::SaveState | ( | StateRecorder & | inStream | ) | const |
Saving state for replay.
float VehicleTrack::mAngularVelocity = 0.0f |
Angular velocity of the driven wheel, will determine the speed of the entire track.