Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
VehicleController Class Referenceabstract

Runtime data for interface that controls acceleration / deceleration of the vehicle. More...

#include <VehicleController.h>

Inheritance diagram for VehicleController:
RefTarget< VehicleController > NonCopyable TrackedVehicleController WheeledVehicleController MotorcycleController

Public Member Functions

JPH_OVERRIDE_NEW_DELETE VehicleController (VehicleConstraint &inConstraint)
 Constructor / destructor. More...
 
virtual ~VehicleController ()=default
 
- Public Member Functions inherited from RefTarget< VehicleController >
 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 Member Functions inherited from NonCopyable
 NonCopyable ()=default
 
 NonCopyable (const NonCopyable &)=delete
 
void operator= (const NonCopyable &)=delete
 

Protected Member Functions

virtual WheelConstructWheel (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

VehicleConstraintmConstraint
 The vehicle constraint we belong to. More...
 
- Protected Attributes inherited from RefTarget< VehicleController >
atomic< uint32mRefCount
 Current reference count. More...
 

Friends

class VehicleConstraint
 

Additional Inherited Members

- Static Public Member Functions inherited from RefTarget< VehicleController >
static int sInternalGetRefCountOffset ()
 INTERNAL HELPER FUNCTION USED BY SERIALIZATION. More...
 
- 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. More...
 

Detailed Description

Runtime data for interface that controls acceleration / deceleration of the vehicle.

Constructor & Destructor Documentation

◆ VehicleController()

JPH_OVERRIDE_NEW_DELETE VehicleController::VehicleController ( VehicleConstraint inConstraint)
inlineexplicit

Constructor / destructor.

◆ ~VehicleController()

virtual VehicleController::~VehicleController ( )
virtualdefault

Member Function Documentation

◆ AllowSleep()

virtual bool VehicleController::AllowSleep ( ) const
protectedpure virtual

◆ ConstructWheel()

virtual Wheel * VehicleController::ConstructWheel ( const WheelSettings inWheel) const
protectedpure virtual

◆ Draw()

virtual void VehicleController::Draw ( DebugRenderer inRenderer) const
protectedpure virtual

◆ PostCollide()

virtual void VehicleController::PostCollide ( float  inDeltaTime,
PhysicsSystem inPhysicsSystem 
)
protectedpure virtual

◆ PreCollide()

virtual void VehicleController::PreCollide ( float  inDeltaTime,
PhysicsSystem inPhysicsSystem 
)
protectedpure virtual

◆ RestoreState()

virtual void VehicleController::RestoreState ( StateRecorder inStream)
protectedpure virtual

◆ SaveState()

virtual void VehicleController::SaveState ( StateRecorder inStream) const
protectedpure virtual

◆ SolveLongitudinalAndLateralConstraints()

virtual bool VehicleController::SolveLongitudinalAndLateralConstraints ( float  inDeltaTime)
protectedpure virtual

Friends And Related Function Documentation

◆ VehicleConstraint

friend class VehicleConstraint
friend

Member Data Documentation

◆ mConstraint

VehicleConstraint& VehicleController::mConstraint
protected

The vehicle constraint we belong to.


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