Gravity
by Mark Cooper · in Torque Game Engine · 09/20/2006 (6:56 pm) · 6 replies
Does anyone know where i can find the gravity control that will effect my entire map.
I already know about PhysicalZone's but I want to know how to change the gravity for everywhere.
Thanks in advance
I already know about PhysicalZone's but I want to know how to change the gravity for everywhere.
Thanks in advance
About the author
#2
09/20/2006 (7:13 pm)
Can it not be done through script?
#3
09/21/2006 (12:01 pm)
Mark, I am a newbie to Torque, but this is one of the first things I tried to do as well and I don't believe it can be done in Script (which is ridiculous). The way Peter shows is the minimum change you would have to make. I also tried to create a Physical Zone that encompassed the whole map and that worked as well, but I decided against it because I don't think it was intended for that.
#4
but ah well, thats just the way it is
thanks for your help guys
09/21/2006 (2:00 pm)
Seems strange you cant change something as simple as gravity by scriptbut ah well, thats just the way it is
thanks for your help guys
#5
Funny.
For every variable you expose to script, you have to add code and make sure it updates over the network, which is neither cheap nor clean if you dont need it. Torque is already cluttered with stuff from the Tribes days, which is very FPS focused. And here's the deal: Not everyone is making the same game.
Torque is a game engine and is used for alot of different games, and you cant just add every little function out there because someone *might* want it in the future.
Which is why you got the code so you can do it yourself.
09/21/2006 (2:53 pm)
Quote:
Mark, I am a newbie to Torque, but this is one of the first things I tried to do as well and I don't believe it can be done in Script (which is ridiculous).
Funny.
Quote:
Seems strange you cant change something as simple as gravity by script
but ah well, thats just the way it is
For every variable you expose to script, you have to add code and make sure it updates over the network, which is neither cheap nor clean if you dont need it. Torque is already cluttered with stuff from the Tribes days, which is very FPS focused. And here's the deal: Not everyone is making the same game.
Torque is a game engine and is used for alot of different games, and you cant just add every little function out there because someone *might* want it in the future.
Which is why you got the code so you can do it yourself.
#6
The reason that you cannot "change a script variable to have gravity affect all objects in the game" is because there is no world wide physics in Torque.
Each and every object in Torque implements their own physics--and this is for a wide variety of reasons, from networking, to optimization, to the very fact that some games don't want to be limited by global world physics.
Certainly, there may be some games that want to have global physics parameters---and you have the source code that lets you make that modification.
09/21/2006 (10:07 pm)
To reinforce what Stefan said with some background:The reason that you cannot "change a script variable to have gravity affect all objects in the game" is because there is no world wide physics in Torque.
Each and every object in Torque implements their own physics--and this is for a wide variety of reasons, from networking, to optimization, to the very fact that some games don't want to be limited by global world physics.
Certainly, there may be some games that want to have global physics parameters---and you have the source code that lets you make that modification.
Torque 3D Owner Peter Simard
Default Studio Name