Ignore Terrain Height

By default, when agents move across a terrain in TNG, they stay the same distance above the ground. This doesn't make sense when an agent is supposed to be flying or swimming. If a bird is flying over a house, is it really going to go up the height of the house just to stay a constant distance above whatever is below it? How do we get agents to ignore features on the patches if they are flying or swimming?


The temporary solution (until this gets added to the program), is to make up an agent variable to keep track of how high above ground level 0 the agent is supposed to be moving; an artificial Z axis. The agents then subtract the height of the patch below them from their Z variable and use the difference as their altitude.

Submitted by talaya on 21. February 2008 - 13:22