View Single Post
Re: Follow the waypoint without looking at it
Old
  (#2)
botman
Super Moderator
 
Status: Offline
Posts: 280
Join Date: Jan 2004
Location: Plano, TX
Default Re: Follow the waypoint without looking at it - 04-07-2004

Create a vector that will be the movement direction (i.e. a vector from the current bot's location to his desired destination).

Convert this vector to a set of angles and use the YAW angle to find the sine and cosine of it.

The sine and cosine can be used in the pfnRunPlayerMove as the forward speed and the side speed arguments.

botman
  
Reply With Quote