![]() |
![]() |
|
Professional
Microsoft Robotics Developer Studio
Part 2 of the book covers the Visual Simulation Environment which uses 3D graphics to render virtual worlds and a physics engine to determine interactions between objects, including gravity and collisions. At first glance, the Simulator looks something like a game engine. However, after a little bit of use, it quickly becomes apparent that it is much different; where many actions and events are scripted in a game environment, the things that happen in the simulator rely completely on the interactions and motions of objects in the environment.
This chapter covers:
There is only one example in this chapter:
Marbles
As you can see from the screenshot below, this example clearly demonstrates how the physics engine works by dropping marbles through a series of pegs and then letting them fall to the floor. Click on the image for a larger view.
This code is available free of charge for non-commercial use. Please see the Licence Agreement.