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