Skip to content

Commit e600f90

Browse files
committedAug 24, 2024
fix pointTowardsSprite pointing to the opposite direction
·
v4.19.0v4.8.3
1 parent 897b875 commit e600f90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/org/openpatch/scratch/Sprite.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ public void pointTowardsSprite(Sprite s) {
561561
var my = s.getY();
562562

563563
double angle = new Vector2(mx - this.x, my - this.y).angle();
564-
this.setDirection(angle);
564+
this.setDirection(90 - angle);
565565
}
566566

567567
/**

0 commit comments

Comments
 (0)
Please sign in to comment.