Removed collision from wall gaps

This commit is contained in:
juanjp600
2017-12-06 13:33:54 -03:00
parent 3df2c20ee1
commit d34c783c30
3 changed files with 8 additions and 2 deletions
@@ -774,7 +774,12 @@ namespace Barotrauma
//if the section has holes (or is just one big hole with no bodies),
//we need a sensor for repairtools to be able to target the structure
if (hasHoles || !bodies.Any()) CreateRectBody(rect).IsSensor = true;
if (hasHoles || !bodies.Any())
{
Body sensorBody = CreateRectBody(rect);
sensorBody.CollisionCategories = Physics.CollisionRepair;
sensorBody.IsSensor = true;
}
}
private Body CreateRectBody(Rectangle rect)