Skip to content

Commit

Permalink
feat: approx get scale improve, Update polygon.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Prozi committed Mar 1, 2024
1 parent 01e5b17 commit 2817b83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bodies/polygon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export class Polygon extends SATPolygon implements BBox, BodyProps {
* allow approx getting of scale
*/
get scale(): number {
return this.scaleVector.x;
return (this.scaleVector.x + this.scaleVector.y) / 2;
}

/**
Expand Down

0 comments on commit 2817b83

Please sign in to comment.