Game Development Community

Rigid Body issues

by Howard Dortch · in Torque 3D Professional · 07/02/2011 (6:19 am) · 5 replies

I thought I could make a simple meteorite fly across the sky by making a rigid body and just apply an impulse. The object gets created but when I apply the impulse the game just locks up (not responding).
Anyone have a simple way to streak a meteorite across the sky or tell me the secret of how to applyImpulse?

The object gets created ok but the call to applyImpulse locks me.

%p = getBoxCenter(Rockm.getWorldBox());
Rockm.applyImpulse(%p, "10 0 0");

#1
07/02/2011 (6:26 am)
Steve showed us a way to fake aircraft flybys - www.garagegames.com/community/resources/view/20958 - perhaps you can use the aircraft part for your meteorite. RigidShape objects can be tweaky, to say the least.
#2
07/02/2011 (7:54 am)
I was doing it that way but just thought how much easier it would be to just create the object with 0 gravity and give it a push.
Thanks for the link.
#3
07/02/2011 (8:11 am)
While I am here I would also like to ask about mounting a particle to this object flying across the sky. I create the object and create a particle then obj.mountObj(particle,0) but the particle just sits there. I created a particle fire and even tried to set it's transform and it just sits there and wont move. Any magic tricks to mount a particle to a moving object?
#4
07/02/2011 (10:51 am)
Check out the rocket launcher, the rocket uses particles for its trail

edit: also the secondary fire on the new soldier gun
#5
07/02/2011 (1:41 pm)
Yeah I just put the projectile in, works perfect.. thanks for the reply.