Help. 3D object height at points.

Blitz3D Forums/Blitz3D Programming/Help. 3D object height at points.

Paul "Taiphoz"(Posted 2003) [#1]
Lo all.

This is a shot of a project im working on. The problem im having is with the landscape.

Its a 3ds model I loaded up, and I need to know what height a part of it is, based on the location of an object like a tree a rock a fence or a sheep.. so that I can make sure the object is on the landscape and not sunk into it.

If you know what I mean.

Any help is welcome. thanks..



Bot Builder(Posted 2003) [#2]
hmm. well, you could do a linepick down from those trees/sheep/rocks. if for instance, the tree's local origin(0,0) is at the bottom, simply linepick from the tree's position with some added to the y axis. In the case that the distance is greater than the amount added, move it down accordingly. in the case that the distance is less, move it up accoringly.