Browse Source

- Final tweak to PointForceControllerToy.

MelvMay-GG 12 years ago
parent
commit
0f4f1ec
1 changed files with 3 additions and 2 deletions
  1. 3 2
      modules/PointForceControllerToy/1/main.cs

+ 3 - 2
modules/PointForceControllerToy/1/main.cs

@@ -36,7 +36,7 @@ function PointForceControllerToy::create( %this )
     PointForceControllerToy.showPlanetoid = true;
     PointForceControllerToy.showExplosions = true;    
     PointForceControllerToy.nonLinearController = true;
-    PointForceControllerToy.controllerForce = 55;
+    PointForceControllerToy.controllerForce = 35;
     PointForceControllerToy.controllerRadius = 36;
     PointForceControllerToy.controllerLinearDrag = 0.1;
     PointForceControllerToy.controllerAngularDrag = 0;
@@ -177,7 +177,8 @@ function Planetoid::onCollision( %this, %object, %collisionDetails )
     }
     
     // Delete the asteroid.
-    %object.Trail.stop(false);
+    %object.Trail.LinearVelocity = 0;
+    %object.Trail.AngularVelocity = 0;
     %object.Trail.safeDelete();
     %object.safeDelete();  
 }