Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
reececomo committed Apr 22, 2024
1 parent 52da9e3 commit 8b89e0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/Action.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@ class FollowPathAction extends Action {
const length = this.segmentLengths[index]! || 1;
const ndx = (endPoint.x - startPoint.x) / length;
const ndy = (endPoint.y - startPoint.y) / length;
const rotation = Math.atan2(ndx, ndy);
const rotation = Math.atan2(ndy, ndx);

target.rotation = rotation;
}
Expand Down

0 comments on commit 8b89e0c

Please sign in to comment.