修改四叉树形状设置位置接口

This commit is contained in:
gongxh 2025-05-26 15:34:04 +08:00
parent 68e2c333fe
commit e0c9444c2d

View File

@ -41,9 +41,9 @@ export abstract class Shape {
this._position = new Vec2(); this._position = new Vec2();
} }
set position(pos: Vec2) { public setPosition(x: number, y: number) {
this._position.x = pos.x; this._position.x = x;
this._position.y = pos.y; this._position.y = y;
} }
get position(): Vec2 { get position(): Vec2 {