I've tried writing a TorqueScript version of the A* algorithm, which is so far going kind of good. But the following code gets stuck in a infinite loop and keeps checking the same object:
-snip-
Solved, it now finds the perfect and shortest path from A -> B on the "walkable objects".