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

#include <TrackedVehicleController.h>

Inheritance diagram for TrackedVehicleControllerSettings:
VehicleControllerSettings SerializableObject RefTarget< VehicleControllerSettings > NonCopyable

Public Member Functions

 TrackedVehicleControllerSettings ()
 
virtual VehicleControllerConstructController (VehicleConstraint &inConstraint) const override
 Create an instance of the vehicle controller class. More...
 
virtual void SaveBinaryState (StreamOut &inStream) const override
 Saves the contents of the controller settings in binary form to inStream. More...
 
virtual void RestoreBinaryState (StreamIn &inStream) override
 Restore the contents of the controller settings in binary form from inStream. More...
 
virtual void SaveBinaryState (StreamOut &inStream) const =0
 Saves the contents of the controller settings in binary form to inStream. More...
 
virtual void RestoreBinaryState (StreamIn &inStream)=0
 Restore the contents of the controller settings in binary form from inStream. More...
 
virtual VehicleControllerConstructController (VehicleConstraint &inConstraint) const =0
 Create an instance of the vehicle controller class. More...
 
- Public Member Functions inherited from SerializableObject
virtual ~SerializableObject ()=default
 Constructor. More...
 
- Public Member Functions inherited from NonCopyable
 NonCopyable ()=default
 
 NonCopyable (const NonCopyable &)=delete
 
void operator= (const NonCopyable &)=delete
 
- Public Member Functions inherited from RefTarget< VehicleControllerSettings >
 RefTarget ()=default
 Constructor. More...
 
 RefTarget (const RefTarget &)
 
 ~RefTarget ()
 assert no one is referencing us More...
 
void SetEmbedded () const
 
RefTargetoperator= (const RefTarget &)
 Assignment operator. More...
 
uint32 GetRefCount () const
 Get current refcount of this object. More...
 
void AddRef () const
 Add or release a reference to this object. More...
 
void Release () const
 

Public Attributes

VehicleEngineSettings mEngine
 The properties of the engine. More...
 
VehicleTransmissionSettings mTransmission
 The properties of the transmission (aka gear box) More...
 
VehicleTrackSettings mTracks [(int) ETrackSide::Num]
 List of tracks and their properties. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from RefTarget< VehicleControllerSettings >
static int sInternalGetRefCountOffset ()
 INTERNAL HELPER FUNCTION USED BY SERIALIZATION. More...
 
- Protected Attributes inherited from RefTarget< VehicleControllerSettings >
atomic< uint32mRefCount
 Current reference count. More...
 
- Static Protected Attributes inherited from RefTarget< VehicleControllerSettings >
static constexpr uint32 cEmbedded
 A large value that gets added to the refcount to mark the object as embedded. More...
 

Detailed Description

Settings of a vehicle with tank tracks

Default settings are based around what I could find about the M1 Abrams tank. Note to avoid issues with very heavy objects vs very light objects the mass of the tank should be a lot lower (say 10x) than that of a real tank. That means that the engine/brake torque is also 10x less.

Constructor & Destructor Documentation

◆ TrackedVehicleControllerSettings()

TrackedVehicleControllerSettings::TrackedVehicleControllerSettings ( )

Member Function Documentation

◆ ConstructController()

VehicleController * TrackedVehicleControllerSettings::ConstructController ( VehicleConstraint inConstraint) const
overridevirtual

Create an instance of the vehicle controller class.

Implements VehicleControllerSettings.

◆ RestoreBinaryState()

void TrackedVehicleControllerSettings::RestoreBinaryState ( StreamIn inStream)
overridevirtual

Restore the contents of the controller settings in binary form from inStream.

Implements VehicleControllerSettings.

◆ SaveBinaryState()

void TrackedVehicleControllerSettings::SaveBinaryState ( StreamOut inStream) const
overridevirtual

Saves the contents of the controller settings in binary form to inStream.

Implements VehicleControllerSettings.

Member Data Documentation

◆ mEngine

VehicleEngineSettings TrackedVehicleControllerSettings::mEngine

The properties of the engine.

◆ mTracks

VehicleTrackSettings TrackedVehicleControllerSettings::mTracks[(int) ETrackSide::Num]

List of tracks and their properties.

◆ mTransmission

VehicleTransmissionSettings TrackedVehicleControllerSettings::mTransmission

The properties of the transmission (aka gear box)


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