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.
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.
Torque 3D Owner mb
render2D = false;
shapeFile = "path..";
And now I have debris! awesome!