We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f82a22 commit bd4b9b8Copy full SHA for bd4b9b8
src/components/physics/area.ts
@@ -523,8 +523,8 @@ export function area(opt: AreaCompOpt = {}): AreaComp {
523
524
const transform = this.transform
525
.clone()
526
- .scale(vec2(this.area.scale ?? 1))
527
- .translate(this.area.offset);
+ .translate(this.area.offset)
+ .scale(vec2(this.area.scale ?? 1));
528
529
if (localArea instanceof k.Rect) {
530
const offset = anchorPt(this.anchor || DEF_ANCHOR)
0 commit comments