Game Development Community

Does TBG have support for true gravity?

by Merfy · in Torque Game Builder · 11/22/2009 (2:05 pm) · 4 replies

Can I set the mass on an object and have it apply forces on nearby object with mass or does TGB only support the downward based "earth" gravity?

#1
11/22/2009 (3:29 pm)
With some simple trigonometry and scripting, you should be able to use the onUpdate(); function to make something similar to what you are talking about.
#2
11/23/2009 (8:33 am)
TGB doesn't come with the ability to allow objects to attract/repulse each other as it's a very specialized requirement.

You can easily add this yourself using script and/or C++ though.
#4
11/23/2009 (8:10 pm)
Thanks all, very good help.