Jolt Physics
A multi core friendly Game Physics Engine
|
Basic settings object for interface that controls acceleration / deceleration of the vehicle. More...
#include <VehicleController.h>
Public Member Functions | |
virtual void | SaveBinaryState (StreamOut &inStream) const =0 |
Saves the contents of the controller settings in binary form to inStream. | |
virtual void | RestoreBinaryState (StreamIn &inStream)=0 |
Restore the contents of the controller settings in binary form from inStream. | |
virtual VehicleController * | ConstructController (VehicleConstraint &inConstraint) const =0 |
Create an instance of the vehicle controller class. | |
Public Member Functions inherited from SerializableObject | |
virtual | ~SerializableObject ()=default |
Constructor. | |
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. | |
RefTarget (const RefTarget &) | |
~RefTarget () | |
assert no one is referencing us | |
void | SetEmbedded () const |
RefTarget & | operator= (const RefTarget &) |
Assignment operator. | |
uint32 | GetRefCount () const |
Get current refcount of this object. | |
void | AddRef () const |
Add or release a reference to this object. | |
void | Release () const |
Additional Inherited Members | |
Static Public Member Functions inherited from RefTarget< VehicleControllerSettings > | |
static int | sInternalGetRefCountOffset () |
INTERNAL HELPER FUNCTION USED BY SERIALIZATION. | |
Protected Attributes inherited from RefTarget< VehicleControllerSettings > | |
atomic< uint32 > | mRefCount |
Current reference count. | |
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. | |
Basic settings object for interface that controls acceleration / deceleration of the vehicle.
|
pure virtual |
Create an instance of the vehicle controller class.
Implemented in MotorcycleControllerSettings, TrackedVehicleControllerSettings, and WheeledVehicleControllerSettings.
Restore the contents of the controller settings in binary form from inStream.
Implemented in MotorcycleControllerSettings, TrackedVehicleControllerSettings, and WheeledVehicleControllerSettings.
Saves the contents of the controller settings in binary form to inStream.
Implemented in MotorcycleControllerSettings, TrackedVehicleControllerSettings, and WheeledVehicleControllerSettings.