<html><head></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div><div>Hello Chris,</div><div><br></div><div>Alice 2.5 is behaving differently, but not because there was a bug, but the math was actually fixed. moveAwayFrom() will move the subject away from the target (in the opposite direction). It does not have anything to do with the object's orientation. The issue with your example here is the objects are all on top of each other, thus the moveAwayFrom method move the skater away in direction of its previous location. If you space the objects 1m apart, you will see what Alice is doing (It does not matter what direction the Skater is facing).<br></div><div><br></div><div>In fixing the Math, I may have introduced this strange behavior. In reality, moving away from an object is like playing eagle and chicken. The chicken always try to run in the opposite direction from the eagle (when the eagle is flying around). In the previous implementation, the direction and amount is calculated only in the beginning. The subject is then moved in the pre-calculated orientation, regardless of where the target is moving to. In another word, the two may end up in the same location if the target is moving towards the subject twice as fast. <br></div><div><br></div><div>Let me know if this makes sense, if you disagree to this implementation. Suggestion are welcomed. Thanks.<br></div><div><br></div><div class="ydpfe3ba856signature">Aik Min Choong</div></div>
        <div><br></div><div><br></div><div><br></div>
        
        </div><div id="ydp209bb3beyahoo_quoted_7730666719" class="ydp209bb3beyahoo_quoted">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                    On Thursday, September 6, 2018, 6:50:12 PM GMT+8, Romero, Chris <Chris-Romero@Redwoods.edu> wrote:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div dir="ltr">Hello,<br></div><div dir="ltr"><br></div><div dir="ltr">There may be an issue with the moveAwayFrom() method. I have been using a tutorial from Dick Baldwin for years without issue. However, the latest version of Alice 2.5.4 does not handle the program as was done in all previous versions of Alice 2. <br></div><div dir="ltr"><br></div><div dir="ltr">I have attached the alice world (v2.4.3.a2w) from version 2.4.3 along with a screen shot of what the final scene should look like (v2.4.3_final_scene_shot.png) and the screen shot from what happens when the same code is executed in v2.5.4 (v2.5.4_final_scene_shot.png).<br></div><div dir="ltr"><br></div><div dir="ltr">If the moveAwayFrom() commands are replaced with move(backwards) commands, all is good in the final resulting scene.<br></div><div dir="ltr"><br></div><div dir="ltr">Please advise,<br></div><div dir="ltr">Chris<br></div><div dir="ltr"><br></div><div dir="ltr">Chris Romero MSCIT, BSEE<br></div><div dir="ltr">Professor CIS<br></div><div dir="ltr">College of the Redwoods<br></div><div dir="ltr">(707) 476-4366<br></div>_______________________________________________<br>alice-teachers mailing list<br><a href="mailto:alice-teachers@lists.andrew.cmu.edu" rel="nofollow" target="_blank">alice-teachers@lists.andrew.cmu.edu</a><br>To change settings or unsubscribe visit:<br><a href="https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers" rel="nofollow" target="_blank">https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers</a></div>
            </div>
        </div></div></body></html>