Thought I'd add some info. for anyone trying to understand the pseudo gravity/velocity in the Ski Terrain example:
vx = Increases going Downhill, Decreases going Uphill.
vy = Increased Momentum = + (Moving Up Uphill)(Climb), Decreased Momentum = - (Moving Downhill)(Descent).
g = pseudo gravity force
ax = 0 when not moving/not on floor, Increases moving backwards up slope, Decreases moving forwards uphill.
ay = Similar to VY, though stays above 0. That is, increases the further away from the valley you are (lowest part between hills).
From this I gather:
vx = Pseudo velocity on horizontal axis (x). Increases the faster you're approaching a climb, decreases as you slow down and begin moving backwards.
vy = Similar to vx but increases the faster you fall towards the valley and decreases the slower you move up or down a slope.
ax = Distance from valley on horizontal axis (x)
ay = Distance from valley on vertical axis (y)
Luckily, I fell into an inescapable valley and was able to monitor the variables ^^
Let me know if I'm wrong about something!!
------
R0J0hound Thanks for sharing these!
The Ski Terrain is very helpful for what I'm trying to do atm, but was wondering if you could help me to understand the events?
I'd like to add user input to this so when the player holds a button down, the "gravity" increases(downwards force is applied). This would allow for greater speeds + air on lift-offs.
I tried applying from 100-5000 force on the Y axis but had no luck.