I start with a horizontal line and I run midpoint displacement algorithm to generate some mountains, then I want to place some pillars on top of the mountain by randomly choosing the X coordinate, but I need the Y coordinate of the mountain so I can place the pillar, right?
Now the idea is that these mountains will keep changing and moving, some chunks might move up or down while moving left or down, at a constant motion.
Let's say I want to place a pillar on the mountain, so I get some X coord. How do I find the height of the mountain ledge that keeps moving?
The idea here is that I create random pillars around the map, on top of the displaced line, while the line itself is displacing. Everything moves. The line keeps bouncing like waves, and the created pillars on top of it gets descended or ascended.
– dragons Mar 31 '14 at 16:39x
toy
, maybe?) and write or read them as needed. – Anko Mar 31 '14 at 18:12