Переглянути джерело

- Asteroid lifetime now set the same as the asteroids.

MelvMay-GG 13 роки тому
батько
коміт
8c0bcda42a
1 змінених файлів з 1 додано та 0 видалено
  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 );