/// <summary>
/// Removes the physics body of the given entity from the physics world.
/// </summary>
public void RemoveEntity(Entity e, World.World worldState)
{
e.Dispose();
worldState.RemoveEntity(e);
if (e.PhysicsBody != null)
{
EntityIdByPhysicsBody.Remove(e.PhysicsBody);
RemoveBody(e.PhysicsBody);
e.PhysicsBody = null;
}
}