I know that, by default, the direction of gravity is down along the Y axis. I also know that I can change gravity's direction to up, by entering a negative value (e.g., -10). What I'd like to know is can the direction of gravity be set to either right or left along the X axis?
If the answer is no and that I should use Force instead, what would the equation be to mimic the force of gravity? Thank you.
I'm not sure if it works, but does rotating the layout affect gravity?
For Platform behavior objects you can change the angle of gravity using events. Sounds like you are using physics behaviors. I would just set gravity to zero and constantly apply a force to simulate gravity.
It is possible with physics too. But you need a plugin.
rexrainbow 's rex_physics_gravitation plugin
Here is an example. All objects are draggeble. The (bad drawn) planets are gravity sources, so in fact they are the position the gravity works towards. That is the same as defining an angle. You can even have more then one gravity source.
https://drive.google.com/open?id=0B1SSu ... GJ2eUhxVnc
Develop games in your browser. Powerful, performant & highly capable.
I asked for this a while back:
Thanks everyone. I'll dig deeper and post what I learn.