Improved submarine movement (buoyancy & drag), engine and "navigation terminal", new map, optimized levels (less vertices and physics bodies)

This commit is contained in:
Regalis
2015-06-29 02:00:27 +03:00
parent 9237a9efe2
commit 004608acd8
43 changed files with 1199 additions and 527 deletions
+2 -2
View File
@@ -66,7 +66,7 @@ namespace Subsurface.Particles
velocity = speed;
this.rotation = rotation + ToolBox.RandomFloatLocal(prefab.startRotationMin, prefab.startRotationMax);
this.rotation = rotation + MathUtils.RandomFloatLocal(prefab.startRotationMin, prefab.startRotationMax);
prevRotation = rotation;
float rand = (float)Game1.localRandom.NextDouble();
@@ -96,7 +96,7 @@ namespace Subsurface.Particles
if (prefab.rotateToDirection)
{
rotation = ToolBox.VectorToAngle(velocity);
rotation = MathUtils.VectorToAngle(velocity);
}
else
{