Advertisement

String Pulling in practice

Started by October 29, 2010 06:16 AM
3 comments, last by IADaveMark 14 years ago
How do you achieve string pulling programmatically?
How do you eliminate mid-points as you see them?
I am puzzled in the following scenerio,

   x xb   x  *** x   ***x    ***a    ***


How does the algorithm cut point a across to point b?
Thanks
Jack
You can check what is the farthest node in your path that you have straight-line access to, and then skip the intermediate nodes.
Advertisement
Quote: Original post by alvaro
You can check what is the farthest node in your path that you have straight-line access to, and then skip the intermediate nodes.


Shoot a ray and test if it hits any obstacles?
Thanks
Jack
Quote: Original post by lucky6969b
Quote: Original post by alvaro
You can check what is the farthest node in your path that you have straight-line access to, and then skip the intermediate nodes.


Shoot a ray and test if it hits any obstacles?

If in your game that guarantees clearance, sure.

By that, he means exceptions such as pits, ledges, low overhangs, etc.

Dave Mark - President and Lead Designer of Intrinsic Algorithm LLC
Professional consultant on game AI, mathematical modeling, simulation modeling
Co-founder and 10 year advisor of the GDC AI Summit
Author of the book, Behavioral Mathematics for Game AI
Blogs I write:
IA News - What's happening at IA | IA on AI - AI news and notes | Post-Play'em - Observations on AI of games I play

"Reducing the world to mathematical equations!"

This topic is closed to new replies.

Advertisement