![]() |
Follow the waypoint without looking at it
Code:
// keep turning towards the waypoint... |
Re: Follow the waypoint without looking at it
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 |
All times are GMT +2. The time now is 03:40. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.