mirror of
https://github.com/scratchfoundation/scratch-flash.git
synced 2024-12-04 21:21:06 -05:00
Update MotionAndPenPrims.as
This commit is contained in:
parent
9b22e27ee6
commit
90afe92f9a
1 changed files with 1 additions and 1 deletions
|
@ -303,7 +303,7 @@ public class MotionAndPenPrims {
|
|||
|
||||
private function turnAwayFromEdge(s:ScratchSprite):Boolean {
|
||||
// turn away from the nearest edge if it's close enough; otherwise do nothing
|
||||
// Note: comparisions are in the stage coordinates, with origin (0, 0)
|
||||
// Note: comparisons are in the stage coordinates, with origin (0, 0)
|
||||
// use bounding rect of the sprite to account for costume rotation and scale
|
||||
var r:Rectangle = s.getRect(app.stagePane);
|
||||
// measure distance to edges
|
||||
|
|
Loading…
Reference in a new issue