Page 1 of 1

Object gravity

Posted: Mon Jun 15, 2009 4:33 pm
by Thristhart
How might I go about assigning a shape it's own gravity vector (so that it and everything else in the space follows one gravity, then it changes gravity while everything else remains the same). This is for a platformer I'm working on where the main puzzle involves changing the directional gravity of objects. I could theoretically simulate the gravity by applying forces but that doesn't seem optimal.

Re: Object gravity

Posted: Mon Jun 15, 2009 5:59 pm
by slembcke
The gravity parameter on spaces is really just a convenience. If you want to create funky gravity puzzles you will have to either use forces or custom velocity update functions.