Thanks that I will be helpful for switching movement modes! Still need to figure out if I'm calculating angle correctly as a speed modifier though..
To go into more detail, I pretty much have a one pixel sensor that I'm using to scan a set of 16x16 tiles.. it records the height value for each pixel of a tile and calculates the angle using Atan2..
Sometimes Atan2 return a negative angle value, I'm not sure if it's okay that I leave it at that value?
I feel awkward asking, but I think my physics are a bit broken, might take a while for me to figure it out on my own..
( Nice to know C works that way! I've never ventured far from Blitzmax or Monkey.. )