Game Development Community

Physics in Torgue

by Christian Menge · in Torque Game Engine · 07/19/2004 (7:37 am) · 5 replies

Hi Guys,

Just started with Torque, having lots of fun! Many of the newer engines have great integration of third party physics engines. They have some great car and or truck demos showing fantastic rigid body performance.

When I look at the Torque vehicle demo's they are not very impressive. Not very responsive.


I have some questions concerning physics in the Torque Engine:

1) How do we get more data on the physics engine being used in Torque?

2) Can we improve the current response/performance?

2) Can we integrate another physics engine into Torque?

3) Would integration of a newer engine be a very large effort for an experience C programmer?

4) Are there any plans for Torque programmers to improve physics in the engine?

Thanks for any help!

Cheers!

Christian

#2
07/19/2004 (10:17 am)
1) It uses a basic rigid body simulation. www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=5495 is a good example of what it can do - which is quite a lot.

2) You could. Is it too slow for your needs? The vehicle physics can feel a bit odd, but that's not a property of the underlying physics simulation.

2) Of course. See ODEItem (link posted by Owen) or www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=5495 to get a feel of how the physics system works and how it can be extended.

3) It depends what you want. You can look at ODEItem to get an idea of what's involved.

4) For most games, the rigid code is enough. Generally you end up tweaking physics _heavily_ for good gameplay, so there's not a lot in terms of generic work we at GG can do. (Well, if we wanted every Torque game to feel the same...)

Anyway, hope that answers your questions. If not, feel free to ask more!
#3
07/19/2004 (10:40 am)
Hi Ben,

Thanks for the detailed response.

Couple more questions:

1) So there are no limitations to how I can use the Physics engine in Torque?

2) I can throw and object and it will bounce, slide and or skid similar to an object in the real world? (depending on physics setup values)

I'm not looking for highend simulation just something that looks good to the eye.

Cheers!

Christian
#4
07/19/2004 (10:55 am)
1) the limit is you knowledge of physics and how well you can code formulas

2)Yes, normal shapebase objects can do all of those check out the datablock variables.
#5
07/19/2004 (11:00 am)
Here are some examples of built in physics variables for Items
F32 friction;
   F32 elasticity;
   bool sticky;
   F32  gravityMod;
   F32  maxVelocity;