[MWForum]Touching? Problem

Harvey Bornfield mwforum@lists.mathcats.com
Sat, 15 Feb 2003 14:01:55 -0700


--Apple-Mail-22-463722019
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed

Ralph
I have not the time to explore these ideas, but it would be interesting 
to reverse the names of the two candidates for contact in the touching? 
[first_turtle second_turtle],
and seeing whether issuing a second command, -
       touching?[second_turtle _first_turtle]
might trigger a Microworlds response to intercept and report the event.

It might also be necessary to "arm the interrupt" a second time, i.e., 
that once an event is reported; perhaps that Microworlds reporter needs 
a "refuel", needs to told to continue looking for succeeding instances 
of contact after an initial detection is made.

Another question is about the logic which employs the touching? command. 
Detected within a when [ ] or Done? [ ] might cause an event to be 
triggered but not behave in an anticipated way.

Give these explorations a whirl, and see what happens.

best regards,
Harvey


On Wednesday, February 12, 2003, at 09:12 AM, Ralph Wege wrote:

> My students are using the Touching? command in their games. Things work
> well if the turtle is moving into another turtle but if the other turtle
> collides with the stationary turtle, the collision is not detected. Is
> there a way to detect collisions no matter what is moving into what?
>
> Thank you
> Ralph Wege
>
> _______________________________________________
> MWForum mailing list
> MWForum@lists.mathcats.com
> http://lists.mathcats.com/mailman/listinfo/mwforum
>
>
"Music is the one incorporeal entrance into the higher world of 
knowledge which comprehends mankind, but mankind cannot comprehend."
Ludwig van Beethoven

--Apple-Mail-22-463722019
Content-Transfer-Encoding: 7bit
Content-Type: text/enriched;
	charset=US-ASCII

Ralph

I have not the time to explore these ideas, but it would be
interesting to reverse the names of the two candidates for contact in
the touching? [first_turtle second_turtle], 

and seeing whether issuing a second command, - 

      touching?[second_turtle _first_turtle]

might trigger a Microworlds response to intercept and report the event.


It might also be necessary to "arm the interrupt" a second time, i.e.,
that once an event is reported; perhaps that Microworlds reporter
needs a "refuel", needs to told to continue looking for succeeding
instances of contact after an initial detection is made.


Another question is about the logic which employs the touching?
command. Detected within a when [ ] or Done? [ ] might cause an event
to be triggered but not behave in an anticipated way.


Give these explorations a whirl, and see what happens.


best regards,

Harvey



On Wednesday, February 12, 2003, at 09:12 AM, Ralph Wege wrote:


<excerpt>My students are using the Touching? command in their games.
Things work

well if the turtle is moving into another turtle but if the other
turtle

collides with the stationary turtle, the collision is not detected. Is

there a way to detect collisions no matter what is moving into what?


Thank you

Ralph Wege


_______________________________________________

MWForum mailing list

MWForum@lists.mathcats.com

http://lists.mathcats.com/mailman/listinfo/mwforum



</excerpt><fontfamily><param>Times New Roman</param><bigger><bigger>"Music
is the one incorporeal entrance into the higher world of knowledge
which comprehends mankind, but mankind cannot comprehend."

Ludwig van Beethoven

</bigger></bigger></fontfamily>
--Apple-Mail-22-463722019--