Game Development Community

How far can a projectile travil in the torque engine

by Jeff Wilkinson · in Torque Game Engine · 09/04/2002 (4:21 am) · 4 replies

how far can a projectile travil in the torque engine?
as far as you want or only a certant distance?

#1
09/04/2002 (4:42 am)
really depends on your settings in script, you can play around with velocity, gravity, lifetime, etc. in your weaponXY.cs file, default values are e.g.
muzzleVelocity      = 100;
   velInheritFactor    = 1;

   armingDelay         = 0;
   lifetime            = 2000;
   fadeDelay           = 1500;
   bounceElasticity    = 0;
   bounceFriction      = 0;
   isBallistic         = true;
   gravityMod = 0.10;
Never played with it yet, though...
#2
09/04/2002 (4:46 am)
In fact it lives the lifetime period. So in the example above, the projectile will be in game for 2 seconds (If it doesn't hit anything)
#3
09/04/2002 (10:47 pm)
Thanks guys
#4
09/04/2002 (11:35 pm)
it can live for that time but if you can't see it- like a random shot up, don't make it too high.