Skip to content

Commit

Permalink
swap translate <--> scale transforms (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
dragoncoder047 authored Sep 4, 2024
1 parent 6f82a22 commit bd4b9b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/physics/area.ts
Original file line number Diff line number Diff line change
Expand Up @@ -523,8 +523,8 @@ export function area(opt: AreaCompOpt = {}): AreaComp {

const transform = this.transform
.clone()
.scale(vec2(this.area.scale ?? 1))
.translate(this.area.offset);
.translate(this.area.offset)
.scale(vec2(this.area.scale ?? 1));

if (localArea instanceof k.Rect) {
const offset = anchorPt(this.anchor || DEF_ANCHOR)
Expand Down

0 comments on commit bd4b9b8

Please sign in to comment.