View Single Post
Old
lanceA
Guest
 
Status:
Posts: n/a
Default 04-06-2006, 10:39 AM

To prevent 'walking through' the mountains you may wish to use an Alice function, distance to - that function will return the distance (in meters), however it measures from the 'center' of objects. Therefore you may wish to try something like:

object move forward (object distance to mountain - 1)

Replace 'object' with the name of your object, i.e., robot, Alice, skater, etc. You also may have to experiment with the amount (-1) to be subtracted.

The manual, Learning to Program with Alice has an even better method to do this, Page 56.

Hope this helps.

Last edited by lanceA; 04-06-2006 at 10:43 AM.
   
Reply With Quote