Game Development Community

DebrisShapeName & explosionShape

by mb · in Torque Game Engine · 12/30/2006 (10:11 am) · 1 replies

Im trying to use these fields in 'DebrisData' & 'ExplosionData' to have a dts model show up in the explosion. For whatever reason I can only get a dts to appear by adding (in the FlyingVehicleData datablock of the object im blowing up):

explosion = theExplosion;
Debris = theDebris;
debrisShapeName = "~/data/shapes/vehicles/debris/debris.dts";

This is almost what I want but I want my explosionData, and/or my debrisData to also have a shape attached and not just particles. Can someone explain why this might be happening?


This is part of the debris datablock;

datablock DebrisData(theDebris2)
{
debrisShapeName = "~/data/shapes/vehicles/debris/debris.dts";
...
}

But in the above debris no object will be there, only the particles I set up, and its the same object that shows up in the FlyingVehicleData datablock.

#1
12/31/2006 (8:01 am)
While loading up BF2 I opened my GPGT book to the exact page that answered my question, how weird... not really it happens a lot but anyways I needed:

render2D = false;
shapeFile = "path..";

And now I have debris! awesome!