pathfinding for skating game in VC
i know how to implement the A* algorithm.but how do i use it in my engine?
if i get a polyline, how am i gonna able to drive on it.
In addition to this, the rules governing whether it is
possible to navigate from any given point A to a secondary
point B are entirely dependent on the skater’s state
at point A. The state required at point A involves a large
number of variables, as well as a complex set of previously
executed maneuvers to have reached it.
lemme put it with example
my car is on postion (0,0,0)
i wanna go to (10,0,50) then to (20,0,70) and so on,
i have methods for accelerating,bracking,steering left,right.
if the point is straight ahead, i want to accelerate, if it is not, i have to steer.
its simple enough to say, but i m not able to implement it.
how am i gonna able to solve this problem. if not code then an algorithm explanation with example will be very nice. thanku
if i get a polyline, how am i gonna able to drive on it.
In addition to this, the rules governing whether it is
possible to navigate from any given point A to a secondary
point B are entirely dependent on the skater’s state
at point A. The state required at point A involves a large
number of variables, as well as a complex set of previously
executed maneuvers to have reached it.
lemme put it with example
my car is on postion (0,0,0)
i wanna go to (10,0,50) then to (20,0,70) and so on,
i have methods for accelerating,bracking,steering left,right.
if the point is straight ahead, i want to accelerate, if it is not, i have to steer.
its simple enough to say, but i m not able to implement it.
how am i gonna able to solve this problem. if not code then an algorithm explanation with example will be very nice. thanku
Multiple points would be needed for corners. AI skater(s) would then rotate to axis to next point. Just mathematically get axis from current point to next point.
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Maps Pathfinding Nodes | jigzat | 10 | 4,174 |
Jun 17, 2008 02:58 PM Last Post: jigzat |
|
| pathfinding, special case... | blazer | 8 | 4,353 |
Sep 27, 2005 12:40 PM Last Post: GoodDoug |
|
| pathfinding crashes | Iceman | 5 | 3,815 |
Jul 28, 2005 05:48 PM Last Post: unknown |
|
| Pathfinding | stevejohnson | 6 | 3,241 |
Oct 28, 2004 01:20 PM Last Post: igame3d |
|
| Pathfinding? | Blake | 3 | 2,794 |
Jan 13, 2004 09:34 PM Last Post: Blake |
|

