VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Physical World

This section describes various aspects of the physical world (terrain and models) that are simulated in VR-Forces.

The DtPhysicalWorld is the primary interface to all of the "physical" aspects of the simulated world. The primary purpose is to provide a singular interface for models to access all of the physical objects, including terrain, DtSimObjects, and any other element in the simulated environment that could be considered a physical object in any way.

The primary interfaces to this class provide information about the simulation that take into account all or a specific subset of the physical elements. In general, models should use the queries that account for all elements of the physical world, or a combination of the specific element categories instead of only querying one or a small subset. This will help to ensure proper results and compatibility with future changes.

Additionally, in order to ensure consistency, the physical world can configured itself, which subsequently affects all related queries. For a specific example, look at the Line of Sight functions and related functionality.

Note application developers will want to ensure that any additions or subtractions to the physical elements in the environment, at a structural level, are accounted for in this classes interface. For instance, if a new type of terrain element, is added to the simulation, such as an implicit surface instead of a polygon, the queries of this class must be updated.

Note
The DtPhysicalWorld class is high level class that give you the ability to query the terrain in different predetermine ways that we will show below. This class relies on the The Terrain API class to execute the actual queries.

Bellow are the most used functions of this interface. For more information about this clas see DtPhysicalWorld.

Note
The DtPhysicalWorld also give you access to various manager that can help you retreive information related to the Physical World. Here are a few of them, for more detail please look at the DtPhysicalWorld class.

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)