elander
(elander)
December 26, 2006, 8:05am
1
This is probably a very noobe question but how do we disable gravity without using a python script controller?
I tried using a constraint for z=0 with the latest ge preview but for some reason it doesn’t work.
Heres the link to the game file:
http://institute.no.sapo.pt/hyper-proto.rar
When we press P to start the simulation the ships start falling slowing even if they are constrained to z=0 in the logic bricks.
Thanks in advance.
DanielKuan
(DanielKuan)
December 26, 2006, 8:42am
2
Set up your logic bricks like this:
ALWAYS<—>AND<—>MOTION(Force 0,0,9.8)
Press the ‘L’ button so it is deselected
This will give your object constant force upwards in global Z axis, counteracting gravity.
greboide
(greboide)
December 26, 2006, 8:46am
3
there might be a lot of ways to do this, if you go to world materials settings you can control the gravity field from there and set it to zero if this is what you really want.
elander
(elander)
December 26, 2006, 10:29am
4
Thanks. Both methods work very well. It was so simple after all.
Sim88
(Sim88)
December 26, 2006, 2:55pm
5
Set up your logic bricks like this:
ALWAYS<—>AND<—>MOTION(Force 0,0,9.8)
Press the ‘L’ button so it is deselected
you could do it with python and getGravity (or whatever it’s called) to use the gravity whatever it currently is
Elander,
Keep in mind, however, that this disables the ‘world’ gravity. ALL dynamic objects will have no gravitational pull.