[Pogamut-list] Can't go backwards?

schrum2 pogamut-forum at artemis.ms.mff.cuni.cz
Fri Oct 3 15:32:34 CEST 2008


Can't go backwards?
I've looked through the whole Gamebots API and all the functions in the class AgentBody, and I'm really quire surprised that there's no simple way to simply move backwards. There's a command to move forwards (moveContinuous) but not backwards, even though moving backwards is a primitive action (a player just has to hold one key to do it). I know that if I tell a bot to move to a specific location that it will turn and maneuver as needed to get there, but what I would like to do is simply have the bot back up a few steps when, for example, its front loaded ray tracers indicate there is an obstacle dead ahead.

Can anyone propose some clever use of high level commands (move, runToLocation, etc.) that would simulate the primitive action of moving backwards just a little bit? I figure there might be a way if one picks the right location to run to, defined in terms of current location and current rotation.

----

Reply Link: <https://artemis.ms.mff.cuni.cz/pogamut/tiki-view_forum_thread.php?forumId=5&comments_parentId=253#form>





More information about the Pogamut-list mailing list