Advertisement
eniac86

concept

Feb 10th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. 1. Check if distance movement is needed altogether (otherwise don't calculate anything of the below)
  2. 2. get a radius from the enemy of 9 and test(do not move there yet) spots on the ground for "navigationability"(using the mesh), but only in +/- 55 to 45 degreed from the middle (middle is players position)
  3. 2a. alternate between + and - from the middle. for example +5 degree -5 degree
  4. 3. first spot that is "navigationable" should be also checked for line of sight.
  5. 4. if "los" is not true continue to iterate in 5 degree steps, after that switch range to 11 (first was 9 so just add steps of 2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement