Game Development Community

Can I do Physics in Torque??

by Adam Bratt · in Torque Game Engine · 12/12/2006 (2:16 pm) · 4 replies

I have a project for school in which I was given a simple physics problem.

The problem involves two cars. One is traveling on a road and the other car is turning onto that road. The cars collide and they each skid a certain distance and stop.

What I would like to do is accurately reenact this problem in Torque. I'm got all of the data...meter length of the skid, speed of the cars. direction forces on cars, angle of skids relative to cars original position, coefficient of friction on the road and the grass off the side....

How do I plug all this in torque??

Thanks in advance!

#1
12/12/2006 (4:37 pm)
Please post ASAP...

Also, if you can't explain how to do this can you at least provide a link to a tutorial that sheds a little light on the subject?
#2
12/12/2006 (9:10 pm)
Although I can not get into specific code examples due to the area of discussion I can tell you this. Inside of wheeled vehicles there is the method updateForces. This would be a good spot to apply the force that the car is hit by another car. If you do not have much experience with Torque this problem could prove to be a very difficult task.
#3
12/14/2006 (5:55 pm)
I have a very large knowledge of Torque..but usually don't mess with the physics of anything.

How do I set friction on the ground? I know there has to be some way so as to account for ice etc.

If it involves some minor modifications to the source code that's fine too. (as long as they are very minor) My friend owns the full version and would prolly let me use it for this purpose.
#4
12/14/2006 (8:43 pm)
I can not post code examples in this forum. I have already written a detailed response, please start a thread in the Private forums and link me to it. I will then be more then happy to reply with code examples.