From e0c9444c2d922b054ff22f643b1a74c50a848114 Mon Sep 17 00:00:00 2001 From: gongxh Date: Mon, 26 May 2025 15:34:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9B=9B=E5=8F=89=E6=A0=91?= =?UTF-8?q?=E5=BD=A2=E7=8A=B6=E8=AE=BE=E7=BD=AE=E4=BD=8D=E7=BD=AE=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/quadtree/Shape.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/quadtree/Shape.ts b/src/quadtree/Shape.ts index 312f799..b4bd312 100644 --- a/src/quadtree/Shape.ts +++ b/src/quadtree/Shape.ts @@ -41,9 +41,9 @@ export abstract class Shape { this._position = new Vec2(); } - set position(pos: Vec2) { - this._position.x = pos.x; - this._position.y = pos.y; + public setPosition(x: number, y: number) { + this._position.x = x; + this._position.y = y; } get position(): Vec2 {