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

Runtime data for tank tracks. More...

#include <VehicleTrack.h>

Inheritance diagram for VehicleTrack:
VehicleTrackSettings

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< uintmWheels
 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...
 

Detailed Description

Runtime data for tank tracks.

Member Function Documentation

◆ RestoreState()

void VehicleTrack::RestoreState ( StateRecorder inStream)

◆ SaveState()

void VehicleTrack::SaveState ( StateRecorder inStream) const

Saving state for replay.

Member Data Documentation

◆ mAngularVelocity

float VehicleTrack::mAngularVelocity = 0.0f

Angular velocity of the driven wheel, will determine the speed of the entire track.


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