Browse Source

- Asteroid lifetime now set the same as the asteroids.

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

+ 1 - 0
modules/PointForceControllerToy/1/main.cs

@@ -208,6 +208,7 @@ function PointForceControllerToy::createAsteroid( %this, %position )
     %player.EmissionRateScale = 3;
     %player.SizeScale = 2;
     %player.SceneLayer = 11;
+    %player.setLifetime( PointForceControllerToy.asteroidLifetime );  
     SandboxScene.add( %player );
     %jointId = SandboxScene.createRevoluteJoint( %object, %player );
     SandboxScene.setRevoluteJointLimit( %jointId, 0, 0 );