PathFinding Creating graph
Posted: Mon Dec 16, 2013 3:36 pm
I'm Working on Implementing an AI into my game, and i'm using an A* algorithm, i want to be able to dynamically create the graph with what we have in the space, i tried using
for each node but this only checks if the box is inside the mesh bounding box not if it is actually colliding with it.
Is there anyway to check if the boundingbox is colliding with the mesh returned from the above code without having to actually add the box to the space??
Thanks in Advance
Code: Select all
game.Space.BroadPhase.QueryAccelerator.GetEntries(box, list);
for each node but this only checks if the box is inside the mesh bounding box not if it is actually colliding with it.
Is there anyway to check if the boundingbox is colliding with the mesh returned from the above code without having to actually add the box to the space??
Thanks in Advance