diff melee.d @ 14:af1e8620f027

fixed steering
author zzzzrrr <mason.green@gmail.com>
date Mon, 23 Mar 2009 14:06:47 -0400
parents e1004697cae1
children 8e6a9e390cba
line wrap: on
line diff
--- a/melee.d	Mon Mar 23 08:02:23 2009 -0400
+++ b/melee.d	Mon Mar 23 14:06:47 2009 -0400
@@ -84,7 +84,7 @@
 
 // Melee settings. Some can be controlled in the GUI.
 struct Settings {
-    float hz = 30;
+    float hz = 60;
     int velocityIterations = 5;
     int positionIterations = 1;
     bool drawShapes = true;
@@ -159,14 +159,15 @@
 
 	void init() {
 	    // Define world boundaries
-		worldAABB.lowerBound.set(-200.0f, -200.0f);
-		worldAABB.upperBound.set(200.0f, 200.0f);
+		worldAABB.lowerBound.set(-400.0f, -250.0f);
+		worldAABB.upperBound.set(400.0f, 250.0f);
 		world = new bzWorld(worldAABB, gravity, allowSleep);
 		world.boundaryListener = m_boundaryListener;
 		world.contactListener = m_contactListener;
 		viewCenter = vec2(10, 10);
 		ship1 = new UrQuan(world);
 		ship2 = new Orz(world);
+        ship2.rBody.angle = 3.14159265/4;
         auto planet = new Planet(world);
 	}