alice-teacher Question about built-in procedures

McLean, Jennifer jmclean at klschools.org
Wed Oct 10 12:10:43 EDT 2018


This is what I was doing so I didn't see a difference. - The command “moveToward (target, getDistanceTo(target))” will produce the same results as moveTo(target).

Thanks.



________________________________
From: alice-teachers <alice-teachers-bounces+jmclean=klschools.org at lists.andrew.cmu.edu> on behalf of Don Slater <don at alice.org>
Sent: Wednesday, October 10, 2018 11:33:45 AM
To: Alice Teachers
Subject: Re: alice-teacher Question about built-in procedures

Jennifer,
moveTo animates movement of the object, in the direction of the target object (a 3D Model) until the pivot point of the object and the pivot point of the target are exactly the same; the original orientation of the object is unchanged.

moveTowards animates movement of the object, by the specified amount, in the direction of the target object (a 3D Model)…  the original orientation of the object is unchanged.

The command “moveToward (target, getDistanceTo(target))” will produce the same results as moveTo(target).

I have attached an Alice 3 project which illustrates the differences…

Let us know if you have any other questions…

All the best,
Don Slater

Alice Project



On Oct 10, 2018, at 11:12 AM, McLean, Jennifer <jmclean at klschools.org<mailto:jmclean at klschools.org>> wrote:

Hi,

I was reviewing the procedures with the class and I was unclear on how to explain the difference between the moveTo and the moveToward procedures. They seem to work the same way.

Thanks, Jennifer
_______________________________________________
alice-teachers mailing list
alice-teachers at lists.andrew.cmu.edu<mailto:alice-teachers at lists.andrew.cmu.edu>
To change settings or unsubscribe visit:
https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20181010/468c59a6/attachment.html>


More information about the alice-teachers mailing list