Force due to gravity

Version 1  (since terrain_angle is an array, not sure if the "if"
statements work)