The Setting Data on Simulation Objects code sample demonstrates how to control simulation variables on objects in a running Microsoft ESP simulation using the SimConnect API. This sample lays the groundwork for many practical applications of the SimConnect API, such as:
- Visualizing data from an external source
- Directly placing and updating objects in the simulation world
- Data can be from a real-world source
- Driving simulation objects from an existing system by circumventing the simulation physics engine
The Setting Data on Simulation Objects sample achieves these essential goals:
- Creates a series of simulation objects
- Freezes position and velocity of the simulation objects
- Collects real-world data from the AGI GPS Constellation Plug-in and associated almanac file
- Uses this data to set the position of each object every user-defined interval
- Retrieves position data from the simulation once per interval for the user-selected object
This sample uses simulation objects to represent and visualize a set of real-world satellites using data from the AGI Components SDK. http://www.agi.com/
|