Fixed hatch issue with shadows

Added per segment visibility/collision
This commit is contained in:
Sebastian Broberg
2016-03-03 20:18:21 +01:00
parent b081891dc6
commit 467a99f79d
8 changed files with 151 additions and 72 deletions
+1 -1
View File
@@ -213,7 +213,7 @@ namespace Barotrauma.Items.Components
if (convexHull == null) return;
if (rect.Height == 0)
if (rect.Height == 0 || rect.Width == 0)
{
convexHull.Enabled = false;
}
+1 -1
View File
@@ -633,7 +633,7 @@ namespace Barotrauma
body.ResetDynamics();
}
body.ApplyForce(buoyancy - body.LinearVelocity * volume);
CurrentHull.HandleItems(deltaTime, this);
//apply simple angular drag
body.ApplyTorque(body.AngularVelocity * volume * -0.05f);
}