VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
6.2 - Adding a New Simulation Object Behavior (Creating an Actuator)

If you want to create a completely new type of actuator, subclass DtActuatorComponent (actCmpnt.h).

If you want to inherit functionality from one of the existing actuators, such as DtAutomotiveActuatorComponent, you can subclass that actuator.

In your actuator, you must do the following:

The Modify Sim Component (modifySimComponent) example creates an actuator that simulates a vehicle that travels due north regardless of steering inputs, but at a speed regulated by the throttle input. It replaces the DtAutomotiveActuatorComponent.

[<< Introduction to Creating Actuators and Controllers] [Home] [Top of Page] [Creating a New Controller >>]


Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)