Game Development Community

Torque crashes using dustTrailEmitter

by Miguel · in Torque Game Engine · 06/21/2007 (11:10 am) · 0 replies

I have the following datablocks for a Hover vehicle which works fine:

datablock ParticleData(ParticulaEstela)
{
   textureName          = "~/data/shapes/buggy/dustParticle";
   dragCoefficient      = 2.0;
   gravityCoefficient   = -0.1;
   inheritedVelFactor   = 0.1;
   constantAcceleration = 0.0;
   lifetimeMS           = 1000;
   lifetimeVarianceMS   = 0;
   colors[0]     = "0.46 0.36 0.26 1.0";
   colors[1]     = "0.46 0.46 0.36 0.0";
   sizes[0]      = 0.50;
   sizes[1]      = 1.0;
};

datablock ParticleEmitterData(Estela)
{
   ejectionPeriodMS = 10;
   periodVarianceMS = 0;
   ejectionVelocity = 1;
   velocityVariance = 1.0;
   ejectionOffset   = 0.0;
   thetaMin         = 5;
   thetaMax         = 20;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "ParticulaEstela";
};

datablock HoverVehicleData(NaveJugador)
{
 spawnOffset = "0 0 1";

 floatingGravMag = 0.5;

 catagory = "Vehicles";
 shapeFile = "~/data/shapes/buggy/buggy.dts";
 computeCRC = true;


 renderWhenDestroyed = false;

 drag = 0.6;
 density = 0.3;

 mountPose[0] = sitting;
 numMountPoints = 1;

   // 3rd person camera settings
   cameraRoll = true;         // Roll the camera with the vehicle
   cameraMaxDist = 2;         // Far distance from vehicle
   cameraOffset = 1.5;        // Vertical offset from camera mount point
   cameraLag = 0.1;           // Velocity lag of camera
   cameraDecay = 0.75;        // Decay per sec. rate of velocity lag

// cameraMaxDist = 15.0;
// cameraOffset = 5.7;
// cameraLag = 5.5;

 isProtectedMountPoint[0] = false;
 explosionDamage = 0.5;
 explosionRadius = 5.0;

 lightOnly = 1;

 maxDamage = 120;
 destroyedLevel = 120;

 isShielded = true;
 rechargeRate = 0.7;
 energyPerDamagePoint = 75;
 maxEnergy = 150;
 minJetEnergy = 15;
 jetEnergyDrain = 1.3;

 // Rigid Body
 mass = 10;
 bodyFriction = 0;
 bodyRestitution = 0.5;
 softImpactSpeed = 20; // Play SoftImpact Sound
 hardImpactSpeed = 28; // Play HardImpact Sound

 // Ground Impact Damage (uses DamageType::Ground)
 minImpactSpeed = 29;
 speedDamageScale = 0.010;

 // Object Impact Damage (uses DamageType::Impact)
 collDamageThresholdVel = 23;
 collDamageMultiplier = 0.030;

 dragForce = 4; // 1.9
 // dragForce = 25 / 45.0;
 vertFactor = 0.8;
 floatingThrustFactor = 0.8;

 mainThrustForce = 300;
 reverseThrustForce = 70;
 strafeThrustForce = 70;
 turboFactor = 10.5;

 brakingForce = 30;
 brakingActivationSpeed = 30;

 stabLenMin = 6.50;
 stabLenMax = 7.25;
 stabSpringConstant = 20;
 stabDampingConstant = 20;

 gyroDrag = 16; // 16 // 36
 gyroForce = 50; //50
 normalForce = 10;
 restorativeForce = 100;
 steeringForce = 90; 
 rollForce = 7;
 pitchForce = 10;


 minMountDist = 4;


 checkRadius = 1.7785;
 observeParameters = "1 10 10";

 shieldEffectScale = "0.9375 1.125 0.6";
  
};

However if I add the following line to the HoverVehicleData datablock:

dustTrailEmitter = Estela;

... then the application silently crashes when the vehicle reaches the ground.

Any ideas?

PD: All images and DTS exist in that location, and there are no console errors or warnings...