rotating debris

hey is there away to rotate debris using detonator or would I have to animate it seperately in maya or max in order for it to rotate in an explosion. thanx.

Not sure what you are trying to do here, but a simple solution is to instantiate a debris prefab with a random torque / angular velocity.

Otherwise, if you are talking about shooting something that explodes, you should be there is a tutorial that explains how to do this (FPS walker tutorial).

There is an explosion force function you can utilize to make an explosion happen.

Lastly, if that does not suite your needs, then you might have to use GameObject.Find() to get all the rigidbodies around the explosion point. Then use either add your angular velocities or torque, or use Rigidbody.AddExplosionForce to change the rotating debris.

A more accurate description of what you are exactly trying to accomplish might help us out.