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

Generic properties for tank tracks. More...

#include <VehicleTrack.h>

Inheritance diagram for VehicleTrackSettings:
VehicleTrack

Public Member Functions

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

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

Generic properties for tank tracks.

Member Function Documentation

◆ RestoreBinaryState()

void VehicleTrackSettings::RestoreBinaryState ( StreamIn inStream)

Restores the contents in binary form to inStream.

◆ SaveBinaryState()

void VehicleTrackSettings::SaveBinaryState ( StreamOut inStream) const

Saves the contents in binary form to inStream.

Member Data Documentation

◆ mAngularDamping

float VehicleTrackSettings::mAngularDamping = 0.5f

Damping factor of track and its wheels: dw/dt = -c * w as seen on the driven wheel.

◆ mDifferentialRatio

float VehicleTrackSettings::mDifferentialRatio = 6.0f

Ratio between rotation speed of gear box and driven wheel of track.

◆ mDrivenWheel

uint VehicleTrackSettings::mDrivenWheel

Which wheel on the track is connected to the engine.

◆ mInertia

float VehicleTrackSettings::mInertia = 10.0f

Moment of inertia (kg m^2) of the track and its wheels as seen on the driven wheel.

◆ mMaxBrakeTorque

float VehicleTrackSettings::mMaxBrakeTorque = 15000.0f

How much torque (Nm) the brakes can apply on the driven wheel.

◆ mWheels

Array<uint> VehicleTrackSettings::mWheels

Indices of wheels that are inside this track, should include the driven wheel too.


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