Game Development Community

My debris won't rotate

by ChrisG · in Torque Game Engine · 02/18/2008 (3:54 pm) · 3 replies

I can't seem to get my debris to rotate while falling/bouncing etc.
Everything else seems to work fine.

any suggestion would be welcome

thanks.

datablock DebrisData(BrokenGlassDebris)
{
   shapeFile = "~/data/shapes/windows/glassshard.dts";
   elasticity = 0.3;
   friction = 0.5;
   numBounces = 3;
   bounceVariance = 2;
   explodeOnMaxBounce = false;
   staticOnMaxBounce = false;
   snapOnMaxBounce = false;
   minSpinSpeed = -90;
   maxSpinSpeed = 90;
   render2D = false;
   lifetime = 2;
   lifetimeVariance = 0;
   velocity = 4;
   velocityVariance = 2;
   fade = true;
   useRadiusMass = true;
   baseRadius = 1;
   gravModifier = 1;
   terminalVelocity = 0;
   ignoreWater = true;
};

#1
02/25/2008 (7:06 pm)
Bump
any ideas?.... anyone?
#2
02/25/2008 (7:33 pm)
I can't find my breaking glass script, but I think you need to add a mass to the debris.
#3
02/27/2008 (4:10 pm)
Thanks - I'll check it out.