[Pogamut-list] RayCasting Bot
cazub
pogamut-forum at artemis.ms.mff.cuni.cz
Wed Oct 1 01:16:22 CEST 2008
Re: RayCasting Bot
Ooops! forgot one Q, is it possible to cast some sort of ray with pogamut where the length is what gets returned? What i mean is a raycasting function where the bot shoots a ray out and can return the distance to the first item or wall hit?
So like My bot is running foward and casts a ray foward and receives a distance of 500, this means nothing is blocking his way. THen lets say he casts a ray and the distance returned is 25, then he knows a wall or obstacle is close and he should turn.
A function like this would be very helpful for a dynamically mapping bot.
----
Reply Link: <https://artemis.ms.mff.cuni.cz/pogamut/tiki-view_forum_thread.php?forumId=6&comments_reply_threadId=244&comments_parentId=243&post_reply=1#form>
More information about the Pogamut-list
mailing list