Jolt Physics
A multi core friendly Game Physics Engine
|
Runtime data for interface that controls acceleration / deceleration of the vehicle. More...
#include <VehicleController.h>
Public Member Functions | |
JPH_OVERRIDE_NEW_DELETE | VehicleController (VehicleConstraint &inConstraint) |
Constructor / destructor. | |
virtual | ~VehicleController ()=default |
VehicleConstraint & | GetConstraint () |
Access the vehicle constraint that this controller is part of. | |
const VehicleConstraint & | GetConstraint () const |
Public Member Functions inherited from RefTarget< VehicleController > | |
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 |
Public Member Functions inherited from NonCopyable | |
NonCopyable ()=default | |
NonCopyable (const NonCopyable &)=delete | |
void | operator= (const NonCopyable &)=delete |
Protected Member Functions | |
virtual Wheel * | ConstructWheel (const WheelSettings &inWheel) const =0 |
virtual bool | AllowSleep () const =0 |
virtual void | PreCollide (float inDeltaTime, PhysicsSystem &inPhysicsSystem)=0 |
virtual void | PostCollide (float inDeltaTime, PhysicsSystem &inPhysicsSystem)=0 |
virtual bool | SolveLongitudinalAndLateralConstraints (float inDeltaTime)=0 |
virtual void | SaveState (StateRecorder &inStream) const =0 |
virtual void | RestoreState (StateRecorder &inStream)=0 |
virtual void | Draw (DebugRenderer *inRenderer) const =0 |
Protected Attributes | |
VehicleConstraint & | mConstraint |
The vehicle constraint we belong to. | |
Protected Attributes inherited from RefTarget< VehicleController > | |
atomic< uint32 > | mRefCount |
Current reference count. | |
Friends | |
class | VehicleConstraint |
Additional Inherited Members | |
Static Public Member Functions inherited from RefTarget< VehicleController > | |
static int | sInternalGetRefCountOffset () |
INTERNAL HELPER FUNCTION USED BY SERIALIZATION. | |
Static Protected Attributes inherited from RefTarget< VehicleController > | |
static constexpr uint32 | cEmbedded |
A large value that gets added to the refcount to mark the object as embedded. | |
Runtime data for interface that controls acceleration / deceleration of the vehicle.
|
inlineexplicit |
Constructor / destructor.
|
virtualdefault |
|
protectedpure virtual |
Implemented in TrackedVehicleController, and WheeledVehicleController.
|
protectedpure virtual |
Implemented in TrackedVehicleController, and WheeledVehicleController.
|
protectedpure virtual |
Implemented in MotorcycleController, TrackedVehicleController, and WheeledVehicleController.
|
inline |
Access the vehicle constraint that this controller is part of.
|
inline |
|
protectedpure virtual |
Implemented in TrackedVehicleController, and WheeledVehicleController.
|
protectedpure virtual |
Implemented in MotorcycleController, TrackedVehicleController, and WheeledVehicleController.
|
protectedpure virtual |
Implemented in MotorcycleController, TrackedVehicleController, and WheeledVehicleController.
|
protectedpure virtual |
Implemented in MotorcycleController, TrackedVehicleController, and WheeledVehicleController.
|
protectedpure virtual |
Implemented in MotorcycleController, TrackedVehicleController, and WheeledVehicleController.
|
friend |
|
protected |
The vehicle constraint we belong to.