Jolt Physics
A multi core friendly Game Physics Engine
|
Generic properties for tank tracks. More...
#include <VehicleTrack.h>
Public Member Functions | |
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 | |
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. | |
Generic properties for tank tracks.
void VehicleTrackSettings::RestoreBinaryState | ( | StreamIn & | inStream | ) |
Restores the contents in binary form to inStream.
void VehicleTrackSettings::SaveBinaryState | ( | StreamOut & | inStream | ) | const |
Saves the contents in binary form to inStream.
float VehicleTrackSettings::mAngularDamping = 0.5f |
Damping factor of track and its wheels: dw/dt = -c * w as seen on the driven wheel.
float VehicleTrackSettings::mDifferentialRatio = 6.0f |
Ratio between rotation speed of gear box and driven wheel of track.
uint VehicleTrackSettings::mDrivenWheel |
Which wheel on the track is connected to the engine.
float VehicleTrackSettings::mInertia = 10.0f |
Moment of inertia (kg m^2) of the track and its wheels as seen on the driven wheel.
float VehicleTrackSettings::mMaxBrakeTorque = 15000.0f |
How much torque (Nm) the brakes can apply on the driven wheel.
Indices of wheels that are inside this track, should include the driven wheel too.