Game Development Community

Is it possible to apply moments in Torque 2D?

by Dan T. · in Torque Game Engine · 09/29/2006 (1:50 pm) · 4 replies

Hi.
Sorry for the constant tirade of questions - but the documentation on Torque 2D is not the most expansive...

Is it possible to apply a rotational force / torque / moment to an object in Torque 2D and if so how?

As the colision system can apply a torque I'm guessing it is possible but the refference material only supplies commands for straight-forward forces...

Thanks,
Dan.

#1
09/29/2006 (2:05 pm)
SetAngularVelocity. It's a linear rotational speed, though you can use it to write your own physics. The rigid body physics mode does more advanced rotations on it's own, though that has a lot of complex settings to understand to get it to act how you want.
#2
09/29/2006 (3:05 pm)
Hi.
Take a look at the file "TGB Reference.pdf" in your installation directory.
You will find a complete list of methods and properties for all TGB objects, and just by reading it you should discover a lot about what any kind of object can do in TGB.

Bye,
Jacopo
#3
09/29/2006 (3:07 pm)
You may also want to subscribe to, and post in, the TGB specific forum areas. Since you haven't yet purchased TGB, the public areas are your best bet. Once you do purchase, you will gain access to both TGB, and the private forums.
#4
09/29/2006 (3:44 pm)
Thanks for your help, everyone!

1) I found SetAngularVelocity. It doesn't quite do what I need, though...
2) The reference docs are very handy but do have a few holes in them. This is one of them. ;)
3) Ah - why didn't I spot those earlier. D'oh!

Thanks again.
Dan.