creating AI on nxogre vehicle. Projection problem ?

nord

21-07-2008 23:00:48

hi all, I am trying to implement pathfollowing technique to drive my nxogre car.

http://www.red3d.com/cwr/steer/PathFollow.html

Long story short; I have one line segment and a point. I need the projection coordinate of the point on the line segment. The scene is 3D but you may provide solutions working in 2D ( x z coordinates ) all answers are welcome.

http://local.wasp.uwa.edu.au/~pbourke/geometry/pointline/

This links provides the solution, but I am curious if I can do this calculations with the existing functions in nxogre. Thanks in advance.