| PathEngine home | previous: | next: |
Enables you to obtain a positions on a mesh underneath a point in 3D space.
cPosition positionFor3DPoint(const tSigned32* point) const; |
| point |
This parameter must point to an array of three elements. These are interpreted as x,y,z, where z is height. |
If there is no mesh face directly underneath the specified point then an invalid position is returned. (cell=-1)
If there is more than one layer of overlapping geometry directly under the point then a position on the highest layer is returned.
Layers above the point are ignored.
To obtain a position for an object that might be lying flush against the mesh it is advisable to add a small amount to the height
of the 3d point passed in to these functions, to ensure the 3D point is actually above the desired ground.
Use
See
| Documentation for PathEngine release 5.16 - Copyright © 2002-2008 PathEngine | next: |