Jump to content
  • Advertisement
Sign in to follow this  
VitaliBR

PhysX + AI

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

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm using the PhysX (C++ with DirectX 9.c)
My level is being cooked, and I'm using a Character Controller in my player.

Look this:


I'm needing to make some enemies in the game.
Should I use a controller for each enemy character?
and how do I apply to path finding a* using the PhysX? (Collision detection with the map and know where to walk)

Thanks

[Edited by - VitaliBR on October 18, 2010 10:44:19 AM]

Share this post


Link to post
Share on other sites
Advertisement
A* is hard to apply from the side but you can divide the world in floor sections and tell how to walk, jump or climb from one section to another. This will create a directed graph with deadlocked locations that enemies will avoid. If you have almost instant acceleration, you can use a directed version of Dijkstra's algorithm.

About the stair physics:
You can have an invisible ramp on the stairs (Like in Unreal 2) to make walking smoother.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!