Skip to content

Commit

Permalink
feat: prettier source
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacek Pietal committed Aug 18, 2022
1 parent 7c7d2b5 commit e9b4c9c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,11 @@ export class System extends BaseSystem implements Data {

return ensureConvexPolygons(candidate).some(
(convexCandidate: SATPolygon) => {
const collided = testCirclePolygon(body, convexCandidate, this.response)
const collided = testCirclePolygon(
body,
convexCandidate,
this.response
);

if (collided) {
this.response.b = candidate;
Expand All @@ -152,7 +156,11 @@ export class System extends BaseSystem implements Data {

if (candidate.type === Types.Circle) {
return ensureConvexPolygons(body).some((convexBody: SATPolygon) => {
const collided = testPolygonCircle(convexBody, candidate, this.response)
const collided = testPolygonCircle(
convexBody,
candidate,
this.response
);

if (collided) {
this.response.a = body;
Expand Down

0 comments on commit e9b4c9c

Please sign in to comment.