85 virtual void tick(
double dt)
override;
94 virtual const char*
type()
const override;
Type-specific handle class for attributes.
Definition attributeHandle.h:229
virtual void setSteering(double val)
Sets the vehicle's steering value.
DtAttributeHandleType< double > myFuelAttr
Attribute handle storing the current fuel amount.
Definition driverControlLogic.h:223
DtAttributeHandleType< DtTaitBryan > myLocalOrientationAttr
Definition driverControlLogic.h:248
bool myShowInclinometer
Definition driverControlLogic.h:219
DtAttributeHandleType< double > myFuelFullAmountAttr
Attribute handle storing the full-tank fuel capacity.
Definition driverControlLogic.h:227
DtAttributeHandleType< DtTaitBryan > myOrientationAttr
Definition driverControlLogic.h:233
virtual bool initialize(makVre::DtPlayerStation *player, makVre::DtInitTable &config) override
Initializes the component with configuration from Lua.
DtAttributeHandleType< DtVector > myPositionAttr
Definition driverControlLogic.h:230
std::string myMainJoystickGroup
Main joystick function group name from configuration.
Definition driverControlLogic.h:204
DtAttributeHandleType< double > myRollAttr
Definition driverControlLogic.h:245
virtual void setHeadlights(double val)
Toggles the headlights.
bool myHasDifferentialLock
Flag indicating if this vehicle has a differential lock.
Definition driverControlLogic.h:216
virtual void setPivot(double val)
Controls pivot steering.
bool myCanPivot
Flag indicating if this vehicle is capable of pivot steering.
Definition driverControlLogic.h:210
virtual void steerLeft(float val)
Input handler functions.
virtual void setGearDown(double val)
Shifts down to the previous gear.
virtual void setEngineEnable(double val)
Toggles the engine on/off.
virtual void shutdown() override
Shuts down the component.
virtual void setParkingBrake(double val)
Toggles the parking brake.
virtual const char * type() const override
Returns the component type identifier.
DtAttributeHandleType< DtVector > myLocalPositionAttr
Definition driverControlLogic.h:236
DtDriverControlLogic()
Constructor for DtDriverControlLogic.
DtInputLogic myDriverInputLogic
Input handler logic for processing input device events.
Definition driverControlLogic.h:199
DtAttributeHandleType< double > myPitchAttr
Definition driverControlLogic.h:242
virtual void setGearUp(double val)
Shifts up to the next gear.
virtual void setDifferentialLock(double val)
Toggles the differential lock.
virtual void sendJoystickMessage(const std::string &function, double val, double delay=0)
Sends a joystick message to the simulation.
virtual ~DtDriverControlLogic() override
Virtual destructor for DtDriverControlLogic.
virtual void setBrake(double val)
Sets the vehicle's brake value.
virtual void steerRight(float val)
Handles right steering input.
virtual void setThrottle(double val)
Sets the vehicle's throttle value.
DtAttributeHandleType< double > myYawAttr
Definition driverControlLogic.h:239
virtual void tick(double dt) override
Updates the component state.
Component that provides entity control functionality.
Definition entityControlLogic.h:64
Table-based access to Lua state for configuration data.
Definition initializer.h:38
virtual DtPlayerStation & player()
Gets the player station.
Class for managing the user interface for engaged roles.
Definition playerStation.h:51
Defines the logic for controlling entities in VR-Engage.
constexpr const char * canPivot
Definition driverControlLogic.h:39
constexpr const char * hasDifferentialLock
Definition driverControlLogic.h:36
constexpr const char * showInclinometer
Definition driverControlLogic.h:42
Defines export/import macros for the vreCommonComponents library.
#define VRECOMMONCOMPONENTS_DLL
DLL export/import macro for the vreCommonComponents library.
Definition export.h:28
Definition driverControlLogic.h:28
!
Definition glsVreMessageUtil.h:50
constexpr const char * DtDriverControlLogicType
Type identifier for DtDriverControlLogic component.
Definition driverControlLogic.h:47
Defines the base class for all VREngage messages.