[Thread Prev] [Thread Next]
from: Igor Flikshteyn <hazelbluebuilder@xxxxxxx>
date: Fri May 20 05:13:16 2011
version: MicroWorlds 2.03
If two shapes colide on the screen, are they aware of each other. How can I
know that one shape collided with another and at what point. For example, if
the turtle hits square, how can I know the exact position of the collision on
the outside perimeter of the square?
If by "shapes" you mean: pictures with which you dress the turtle using the
command. Then yes.
You can detect collisions with:
if touching "t1 "t2 [...]
if touching "t1 "t2 [show ask "t1 [pos]]
which shows the position of t1 at the time of collision with t2.
Previous by thread:
MIA, Ask an Expert: Shape awareness
Next by thread:
Re: MIA, Ask an Expert: Shape awareness
To save an attachment to your computer, PC users should right-click (Mac users, click and hold the mouse button) on the link and then choose 'save target as' from the pop-up menu. A window will then pop up in which you can choose a location for the file.