#define JPH_EXPORT
Definition Core.h:275
unsigned int uint
Definition Core.h:500
#define JPH_NAMESPACE_END
Definition Core.h:425
#define JPH_NAMESPACE_BEGIN
Definition Core.h:419
#define JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(linkage, class_name)
Definition SerializableObject.h:80
ETrackSide
On which side of the vehicle the track is located (for steering).
Definition VehicleTrack.h:17
@ Right
Definition VehicleTrack.h:19
@ Left
Definition VehicleTrack.h:18
@ Num
Definition VehicleTrack.h:20
VehicleTrack[(int) ETrackSide::Num] VehicleTracks
Definition VehicleTrack.h:54
Definition StateRecorder.h:110
Simple binary input stream.
Definition StreamIn.h:13
Simple binary output stream.
Definition StreamOut.h:13
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