getting Ai to jump
by PGames · in Torque 3D Professional · 09/03/2010 (9:43 am) · 2 replies
So I have my player jump from a platform to another platform, how do I get my aiplayer (who's attacking) to do the same instead of just walking over the edge? Is there a resource for this?
I mean, I know I can use a trigger to force the aiplayer to play the jump animation and get to another point on the other platform, but there must be an easier way to do that right? Especially since I have many platforms, using triggers could be really costly.
I mean, I know I can use a trigger to force the aiplayer to play the jump animation and get to another point on the other platform, but there must be an easier way to do that right? Especially since I have many platforms, using triggers could be really costly.
#2
I think you'd need to implement some kind of "needsToJump" method in your AI's pathfinding logic.
09/03/2010 (8:13 pm)
Triggers would be costly, but not nearly as much as doing something like raycasting from the AI to the player, deciding if the height difference is enough to need a jump, and then testing if he is at the end of a platform, ect.I think you'd need to implement some kind of "needsToJump" method in your AI's pathfinding logic.
Torque Owner JesseL
Pyrotronics-Games