Debris not showing
by Ken Davis · in Torque Game Engine · 12/06/2004 (6:50 am) · 1 replies
I have the following debris data block
-Ken
datablock DebrisData(TankDebris)
{
explodeOnMaxBounce = true; //false
elasticity = 0.15;
friction = 0.5;
lifetime = 4.0;
lifetimeVariance = 0.0;
minSpinSpeed = 40;
maxSpinSpeed = 600;
numBounces = 5;
bounceVariance = 1; //0
staticOnMaxBounce = true;
gravModifier = 1.0;
useRadiusMass = true;
baseRadius = 1;
velocity = 20.0;
velocityVariance = 12.0;
};and in my tank datablock I have these lines// debris debrisShapeName = "~/data/shapes/player/TankDestroyed/TankDestroyed.dts"; debris = TankDebris; renderWhenDestroyed = false;But the debris shape does not show. The regular tank is not there, but I can still see damage emitters. I think I have tried renderWhenDestroyed both ways and all it controlled was making the regular tank appear and disappear. Any ideas? Is there another piece I am missing?
-Ken
Zod
datablock DebrisData(TankDebris) { // ZOD-- shapeFile = "~/data/shapes/player/TankDestroyed/TankDestroyed.dts"; explosion = YourExplosionData; //-------- explodeOnMaxBounce = true; //false elasticity = 0.15; friction = 0.5; lifetime = 4.0; lifetimeVariance = 0.0; minSpinSpeed = 40; maxSpinSpeed = 600; numBounces = 5; bounceVariance = 1; //0 staticOnMaxBounce = true; gravModifier = 1.0; useRadiusMass = true; baseRadius = 1; velocity = 20.0; velocityVariance = 12.0; };You would probably want to add some emitters to the debris, like flames comming from them, if so, create teh emitters and then add them to the debrisData