mirror of
https://github.com/Gongxh0901/kunpolibrary
synced 2025-06-02 23:54:24 +00:00
修改四叉树形状设置位置接口
This commit is contained in:
parent
68e2c333fe
commit
e0c9444c2d
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user