0

Hi,

Basically I have a game type scenario in which objects are falling from the sky onto uneven terrain below but my problem is this:

I can't figure out how to determine when an object has actually collided with a slope (the point of impact) because obviously the y value is different depending upon the x value.

So.....given that I can calculate the slopes gradient and I know the two points from which I define it (the highest and lowest points), how can I find the y value on the slope (i.e. the height) using the x value of the object that may be colliding with it?