Game Development Community

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.

#1
09/03/2010 (6:51 pm)
well, tribes 2 used AI that had jetpack jumping logic that was all written in torque script. Perhaps if you went and took a look at how that AI was implemented you might get an idea?
#2
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.