Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. Check if distance movement is needed altogether (otherwise don't calculate anything of the below)
- 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)
- 2a. alternate between + and - from the middle. for example +5 degree -5 degree
- 3. first spot that is "navigationable" should be also checked for line of sight.
- 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