unsigned int uint
Definition Core.h:309
#define JPH_NAMESPACE_END
Definition Core.h:240
#define JPH_NAMESPACE_BEGIN
Definition Core.h:234
std::vector< T, STLAllocator< T > > Array
Definition STLAllocator.h:81
#define JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(class_name)
Definition SerializableObject.h:71
ETrackSide
On which side of the vehicle the track is located (for steering)
Definition VehicleTrack.h:17
VehicleTrack[(int) ETrackSide::Num] VehicleTracks
Definition VehicleTrack.h:54
Definition StateRecorder.h:15
Simple binary input stream.
Definition StreamIn.h:11
Simple binary output stream.
Definition StreamOut.h:11
Runtime data for tank tracks.
Definition VehicleTrack.h:45
void RestoreState(StateRecorder &inStream)
Definition VehicleTrack.cpp:47
float mAngularVelocity
Angular velocity of the driven wheel, will determine the speed of the entire track.
Definition VehicleTrack.h:51
void SaveState(StateRecorder &inStream) const
Saving state for replay.
Definition VehicleTrack.cpp:42
Generic properties for tank tracks.
Definition VehicleTrack.h:25
void RestoreBinaryState(StreamIn &inStream)
Restores the contents in binary form to inStream.
Definition VehicleTrack.cpp:32
float mMaxBrakeTorque
How much torque (Nm) the brakes can apply on the driven wheel.
Definition VehicleTrack.h:39
void SaveBinaryState(StreamOut &inStream) const
Saves the contents in binary form to inStream.
Definition VehicleTrack.cpp:22
float mInertia
Moment of inertia (kg m^2) of the track and its wheels as seen on the driven wheel.
Definition VehicleTrack.h:37
Array< uint > mWheels
Indices of wheels that are inside this track, should include the driven wheel too.
Definition VehicleTrack.h:36
float mDifferentialRatio
Ratio between rotation speed of gear box and driven wheel of track.
Definition VehicleTrack.h:40
uint mDrivenWheel
Which wheel on the track is connected to the engine.
Definition VehicleTrack.h:35
float mAngularDamping
Damping factor of track and its wheels: dw/dt = -c * w as seen on the driven wheel.
Definition VehicleTrack.h:38