<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div class="" style="word-wrap:break-word; line-break:after-white-space">I am experiencing what I think is a bug in Alice 2 in the “move toward” instruction. See attachment. Here is the code:
<div class=""><span class="" style="font-size:medium; background-color:rgb(255,247,230)">  </span><span class="" style="background-color:rgb(240,240,255)"><b class="">bunny</b></span><span class="" style="font-size:medium; background-color:rgb(255,247,230)"> </span><b class="" style="background-color:rgb(255,247,230)">move </b><span class="" style="font-size:medium; background-color:rgb(255,247,230)">( </span><span class="" style="background-color:rgb(240,240,255)"><b class="">bunny</b></span><span class="" style="font-size:medium; background-color:rgb(255,247,230)"> </span><b class="" style="background-color:rgb(255,247,230)">distance
 to </b><span class="" style="font-size:medium; background-color:rgb(255,247,230)"></span><span class="" style="background-color:rgb(240,240,255)"><b class="">chicken</b></span><span class="" style="font-size:medium; background-color:rgb(255,247,230)"> ) </span><b class="" style="background-color:rgb(255,247,230)">toward </b><span class="" style="font-size:medium; background-color:rgb(255,247,230)"></span><span class="" style="background-color:rgb(240,240,255)">target
 = <b class="">chicken</b></span></div>
<div class="">
<div class="">
<div dir="auto" class="" style="word-wrap:break-word; line-break:after-white-space">
<div style="color:rgb(0,0,0); font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
This should move the bunny right onto the chicken, and it does, unless the chicken is moving. When the chicken is moving, even if it’s moving very slowly, the bunny does not move far enough. It should do the same thing as “bunny move to chicken,” but it doesn’t.</div>
<div style="color:rgb(0,0,0); font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<br class="">
</div>
<div style="color:rgb(0,0,0); font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
I am guessing there is special logic in the implementation of “move toward” for when the target object is moving, and there is an error in the calculation in that case. I am guessing maybe a unit vector is used instead of a vector scaled by the speed.</div>
<div style="color:rgb(0,0,0); font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<br class="">
</div>
<div style="color:rgb(0,0,0); font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
James</div>
<div style="color:rgb(0,0,0); font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
—<br class="">
James Vanderhyde<br class="">
Assistant Professor and Department Chair, Computer Science<br class="">
Saint Xavier University<br class="">
3700 W. 103rd St.<br class="">
Chicago, IL 60655<br class="">
773-298-3454</div>
</div>
</div>
</div>
</div>
<div class="" style="word-wrap:break-word; line-break:after-white-space">
<div class=""></div>
</div>
</body>
</html>