# 3D Pathfinding

This topic is 2051 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Any code sample for 3D Pathfinding?

I'm using Bullet Physics and want to find a path to move a model to a certain position without hitting the walls.

##### Share on other sites

Most of the time you can simple use 2D path finding (for example A*).

##### Share on other sites

Most of the time you can simple use 2D path finding (for example A*).

Any code example for A* 3D Pathfinding that can be used with Bullet Physics?

##### Share on other sites

Any code example for A* 3D Pathfinding that can be used with Bullet Physics?

Google A*, learn how A* works, then think about how to implement it into your game, there are many A* implementations out there, so you can include it in your project without having to reinvent it. But your not going to find any code which magically implements itself within your game, it will require you to think.

Edited by Andy474

##### Share on other sites

I'm not really good in mathematics, I searched online and found mathematical tutorials, so can you point me to any code example?

Edited by Medo3337

##### Share on other sites

You need mathematics to understand it.

Wikipedia has some pseudo-code, but unless we know what language your after, we cant give any examples. If you cant' do math AI is probably not be the right area for you to be looking at.

Edited by Andy474

##### Share on other sites

I'm using C++ and D3D9.

##### Share on other sites

have you googled? cus i just googled C++ A* Algorithm and got like gazallion hits.

##### Share on other sites
Furthermore, Pathfinding (or AI in general) is not a DirectX topic. There's a whole subforum here with FAQs and tons of threads about. You better ask there if you have a specific question.

##### Share on other sites

Most of the time you can simple use 2D path finding (for example A*).

I'm sensing a misunderstanding here. The A* algorithm works for any dimension.

1. 1
2. 2
Rutin
19
3. 3
4. 4
5. 5

• 13
• 26
• 10
• 11
• 9
• ### Forum Statistics

• Total Topics
633736
• Total Posts
3013601
×