Box2d: Set active and inactive
- by Rosarch
I'm writing an XNA game in C# using the XNA port of Box2d - Box2dx.
Entities like trees or zombies are represented as GameObjects. GameObjectManager adds and removes them from the game world:
/// <summary>
/// Does the work of removing the GameObject.
/// </summary>
/// <param name="controller">The GameObject to…