VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
5.3 - Component Systems

A collection of related DtSimComponents can be organized into a DtComponentSystem (compSystem.h).

A DtComponentSystem is a class that may contain zero or more sensors, controllers, and actuators, and systems. Within a DtComponentSystem, components and subsystems are ticked the same way as components that belong directly to the DtSimComponentManager. Each DtComponentSystem has a DtSimResourceManager that maintains any resources associated with the system. The DtSimComponentManager has a ‘base’ DtComponentSystem that holds all DtSimComponents and DtComponentSystems for the entity.

Systems are used to represent some logical subsystem of an entity, such as a weapon or its movement capabilities. To see which systems have been defined for use in VR-Forces, use the Entity Editor and OPD Editor, or go to the ./data/simulationModelSets/default/vrfSim/systems directory to examine the system definition files (.sysdef) directly.

You can create an entity without any explicit systems defined by configuring the entity with sensors, controllers, and actuators directly. The ‘base’ DtComponentSystem will be created implicitly for the components when the entity is created. However, you can create larger, reusable ‘building blocks’ if you organize components into systems.

Note
Only components contained in the same system can share process state repositories.

[<< Components] [Home] [Top of Page] [The Component Manager >>]


Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)