alice-teacher collisions
David Fenton
fenton at fdn.uq.edu.au
Wed Feb 9 18:20:01 EST 2011
G'day Ella,
Try the attached.
I've been experimenting, but I'd like a simpler way to do it. Alice cannot detect collisions, you have to do it yourself.
Cheers
David Ô¿Ô
From: alice-teachers-bounces+fenton=fdn.uq.edu.au at lists.andrew.cmu.edu [mailto:alice-teachers-bounces+fenton=fdn.uq.edu.au at lists.andrew.cmu.edu] On Behalf Of Ella Glazer
Sent: Thursday, 10 February 2011 2:50 AM
To: Alice educators
Subject: alice-teacher collisions
I have 2 vehicles moving towards each other (veh1 moves to veh2). There is a collision function.
How can I add a true/false or something so that when the 2 vehicles come within .5 meters one takes a different action?
In other words while vehicle1 is movingto vehicle2 -- can it move to vehicle2 - .5?
Thanks
Ella Glazer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.andrew.cmu.edu/mailman/private/alice-teachers/attachments/20110210/2ffba873/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Collisions2.a2w
Type: application/octet-stream
Size: 260361 bytes
Desc: Collisions2.a2w
Url : https://lists.andrew.cmu.edu/mailman/private/alice-teachers/attachments/20110210/2ffba873/attachment-0002.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CarCollisions.a2w
Type: application/octet-stream
Size: 272438 bytes
Desc: CarCollisions.a2w
Url : https://lists.andrew.cmu.edu/mailman/private/alice-teachers/attachments/20110210/2ffba873/attachment-0003.obj
More information about the alice-teachers
mailing list