I have a question about gravity in physics gideros.
How to set gravity direction? I saw the example the gravity direction is always downwards. I want to set the gravity direction to into the screen. How can I do this?
Extending @atilim answer gravityx - defines gravity on x axis, meaning if it is positive (for example 10) gravity direction is to the right, if it is negative (example -10) gravity direction is to the left
Same for gravityy - positive (as 10) downwards, negative (as -10) upwards.
So combining them you can direct gravity any direction you want. Basically you need to learn more about vectors and vector projection in specific directions.
Comments
gravityx - defines gravity on x axis, meaning if it is positive (for example 10) gravity direction is to the right, if it is negative (example -10) gravity direction is to the left
Same for gravityy - positive (as 10) downwards, negative (as -10) upwards.
So combining them you can direct gravity any direction you want. Basically you need to learn more about vectors and vector projection in specific directions.