Now that the terrain is finished I need to put characters on it.
The problem is I have no idea how get them to walk around on this kind of surface. As the x and y positions change the z has to change according to the height at those points. What kind of approach can I use? and can I use the same thing for camera collision detection.
It took me a few minutes but the formula makes perfect sense now. Thanks.
I''m actually using an imported mesh, but I think it could be modified without too much trouble.
Another thought I had was too use the the whole ''map'' datastructure and fit it on an approximated polynomial function. That way you could feed the function the x and y values and just get the z-value at those points. This would give you the approximated z-value in one go.
Can someone tell me if this sounds like a valid method and/or if someone is using something similar.