diff orz.d @ 7:2217fd1fe384

added angular and linear velocity limit
author zzzzrrr <mason.green@gmail.com>
date Sat, 21 Mar 2009 19:34:20 -0400
parents eb6059f7035a
children 4ee9e4a0c03b
line wrap: on
line diff
--- a/orz.d	Sat Mar 21 16:42:08 2009 -0400
+++ b/orz.d	Sat Mar 21 19:34:20 2009 -0400
@@ -46,18 +46,19 @@
     this(bzWorld world) {
         
         super(world);
-        super.engineForce = bzVec2(300, 0);
-        super.turnForce = bzVec2(0, 10000);
-        super.rightTurnPoint = bzVec2(-0.1, 0);
-        super.leftTurnPoint = bzVec2(0.1, 0);
+        engineForce = bzVec2(500, 0);
+        turnForce = bzVec2(0, 5000);
+        rightTurnPoint = bzVec2(-0.5, 0);
+        leftTurnPoint = bzVec2(0.5, 0);
 
         auto bodyDef = new bzBodyDef;
+        //bodyDef.isBullet = true;
         bodyDef.position = bzVec2(10,10);
         bodyDef.angle = PI/2;
         bodyDef.allowFreeze = false;
 
         rBody = world.createBody(bodyDef);
-        float density = 2.0f;
+        float density = 5.0f;
 
         // Body
         auto b = new bzPolyDef(density);