Im making a roguelike game, using XNA and farseer physics. Some rooms will have a procedurally generated cave like layout made from blocks.
At the moment every block is a seperate body. created thusly:
_floor = BodyFactory.CreateRectangle(_world, ConvertUnits.ToSimUnits(Globals.SmallGridSize.X), ConvertUnits.ToSimUnits(Globals.SmallGridSize.Y), 30f);
_floor.Position = ConvertUnits.ToSimUnits(_position.X + _centerVect.X, _position.Y + _centerVect.Y);
_floor.IsStatic = true;
_floor.Restitution = 0.2f;
_floor.Friction = 0.2f;
Should I Just have one body per room and add all the rectangle shapes for each block to the body? Will this give me a performance boost? Also will it be possible to add and remove block shapes to this body (in order to be able to destroy a block and then "add" the exposed one behind it)?