Game Development Community

The capabilities of Torque2D physics

by Joe Bourrie · in Torque Game Builder · 07/29/2005 (7:59 pm) · 8 replies

I am currently evaluating different engines for my next 2D venture, and Torque2D sounds like a good engine to check out. Before purchase, though, I need to consider a few things:
- Does the Torque2D physics simulation handle rotation in handling collision response. In which I mean, if I drop a box on its corner, will it spin when it hits and eventually land flat-side down?
- If not, how difficult would it be to integrate ODE, Tokamak, or another physics system into Torque2D?
- If so, has anybody tested its speed (average number of objects on a particular system spec?) and does it have any spatial optimizations (such as QuadTrees)?

Thank you for your time,
Joe Bourrie

#1
07/29/2005 (8:10 pm)
Yes, the physics system handles rotations. Check Melv May's latest .plan to see some videos from the upcoming version. They have some examples of various collision responses(including rigid body). I'm not sure on the actual speed, but I've seen some examples with a rather large number of objects with physics turned on.

Most of my little expiraments don't really use much of the physics subsystem, so I'm no expert on the performance of it.
#2
07/29/2005 (8:42 pm)
Great, thank you, I think these videos sold me on T2D :)
#3
07/29/2005 (9:56 pm)
ODE in T2D?
Not out of the question

Gary (-;
#4
07/31/2005 (12:55 pm)
Melv and Josh have done a lot of work with T2D's physics system. It supports rotation, ODE and such are readily integratable, and performance testing was a major part of the development process. (There's a whole instrumentation harness on the physics code; see Josh/Melv's screenshots for some glimpses of it.)

This is seriously one of the best 2d physics systems I've ever seen, and I've been looking for a good one (and writing my own systems since I could never find a good one that was out there) for about eight years now.
#5
08/01/2005 (3:03 am)
Great job on the tech Josh. The demos gave me a lot of ideas for a future T2D game I'm dreaming up.
-Ajari-
#6
08/01/2005 (1:26 pm)
There is a physics demo out there that you can download and play with different physics settings , it's pretty cool.

Do a search for 'torque 2d physics demo' on this site and I think you'll find it.
#8
08/02/2005 (1:25 pm)
Thank you, I'll check out the demo

Edit: Ah, I'd actually played with that demo before, but didn't realize that the angular velocity was set to 0 by default. It was actually the demo that sparked this thread in the first place :)

Anyway, I think I'm convinced, and will be starting work on the project in a month or two. Thanks to everyone for the help!