Original Post
Hi,
I wanna make a real simple pathfinding routine that works
like this.
- All objects in the gameworld are circles
- The only moving object is 1 AI entity
- It''s speed is constant (for simplicities sake)
- The moment that units LOS to it''s current goal
is blocked by another entity, it should adjust it''s
heading based on the distance to the blocking unit,
it''s current heading and it''s spead.
Now the thing I''m not sure how to do is that last part,
I can prob. figure out if another circle is blocking the
LOS. But I have no clue what kind of vector calculations
I should make to get the new velocity.
I have done a bit of searching on the internet, about vectors
but if someone could point me in the right direction I would be
real greatfull.
Thanks,
Tristan