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

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: