Original Post
Hi all, Now this might seem a little strange so bear with me. I am writing some terrain generation software that features, the hill, diamond square and fault algorithm. What I want to do is define which parts of the terrain is accessable and which parts aren't. For example, given a slope angle, say 30 degrees, a player can travel to a point where the slope is less than 30 degrees but cannot climb a slope that is greater tan 30 degrees. I'm not interested in collision detection, just the rendering of the terrain. I have defined a slopemap which is a multidimensional array of ints the same size as the terrain and I want it so that if an element contains a 1 then that part of the terrain is accessable, if the element is a 2, then that part of the terrain is inaccesable as the slope is too high. I hope i've explained this ok, let me know if you need further clarification. Any ideas/suggestions? Many thanks