Terrain Picking navigation
by James Sun · in General Discussion · 05/11/2004 (12:52 am) · 2 replies
Anybody konw how to pick a spot on terrain, and have the character walk to that location? This is to replace the standard WASD+Mouse navigation, and instead using mouse to tell the character where on the terrain to walk to. Thanks!
About the author
Torque Owner Westy
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=4146
You can use the pickPoint function to obtain an xyz position of a click, then have a player walk there.
AIPlayer::setMoveDestination()
Or you could go one further, and use AI player path nodes, place down a new node where the mouse was clicked.
Hope this gives you some hints on where to go.