Skip to content

Commit

Permalink
fix pointTowardsSprite pointing to the opposite direction
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebarkmin committed Aug 24, 2024
1 parent 897b875 commit e600f90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/openpatch/scratch/Sprite.java
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ public void pointTowardsSprite(Sprite s) {
var my = s.getY();

double angle = new Vector2(mx - this.x, my - this.y).angle();
this.setDirection(angle);
this.setDirection(90 - angle);
}

/**
Expand Down

0 comments on commit e600f90

Please sign in to comment.