- Home /
Storing Vector3's and Detecting Gameobjects
I have thought of a way to implement an A* pathfinding algorithm, and my question was, how could I store vector 3's in a list? For example the closed set and open set. I need to be able to change (1,0,0) from open to closed after being traversed. But more importantly, I was wondering if there was a way to detect if a game object (cube, wall, etc.) was on/covering a point in the 3d environment, so my AI doesn't walk through walls. Any suggestions? Thanks.
Answer by Lovrenc · Jan 03, 2013 at 11:43 AM
This is not ok. What you need to do is make a mesh, waypoint or grid representation of your terrain (which ofcourse is not visible to player) and than do your pathfinding uppon that information.
Your answer
Follow this Question
Related Questions
Problems with my waypoints code 1 Answer
A* Pathfinding Bugs 0 Answers
Custom pathfinding and node-values 1 Answer
A* Pathfinding AIFollow in JavaScript? 0 Answers
NavMesh.SamplePosition returns point outside the NavMesh 0 Answers