Monday, March 17, 2008

Botworx Simulation Overview

Botworx uses a dual phase stepping approach. Step and PostStep. I thought about adding PreStep but it doesn't seem necessary.

I'm aware that scenegraph libraries such as Ogre can get by with just one pass and lazy updating but I don't know if it's possible here.

Besides, I've seen physics and AI code that use dual phase so I won't obsess about it until someone proves me wrong.

The Step Phase

Here is the stepping order:

Application
Scenario
... World
...... Spaces
... Physics
... Renderer

The PostStep Phase

Nodes in the SceneGraph get updated in this phase.

The Wrap Up

Yeah, I know, sketchy. All of these articles are works in progress.

No comments: