alice-teacher Turn to face method (Alice 2)

Frederick, Kevin K.Frederick at ais.at
Wed Sep 5 15:33:45 EDT 2012


Hi everyone,

Why do the "turn to face" or "point to" methods, when applied to subparts, do the opposite of what one would expect for some characters?

For example, suppose you want a spiderRobot's head (only) to turn to face an alien. Using spiderRobot.neck.turnToFace or spiderRobot.head.turnToFace has the effect of causing the spider robot to turn the back of its head to the alien. Ditto for spiderRobot.body.turnToFace. A penguin's head, however, has the behavior you would expect: it ends up looking at the alien.

Thanks in advance for any help!
Kevin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.andrew.cmu.edu/mailman/private/alice-teachers/attachments/20120905/c1335853/attachment.html 


More information about the alice-teachers mailing list