更新注释

This commit is contained in:
YHH
2021-09-14 18:24:57 +08:00
parent cd94326aad
commit 4a9e11c480
3 changed files with 3 additions and 3 deletions

View File

@@ -1360,7 +1360,7 @@ declare module es {
*/
protected _isColliderRegistered: any;
/**
* 镖师碰撞器的绝对位置
* 表示碰撞器的绝对位置
*/
readonly absolutePosition: Vector2;
/**

View File

@@ -3277,7 +3277,7 @@ var es;
}
Object.defineProperty(Collider.prototype, "absolutePosition", {
/**
* 镖师碰撞器的绝对位置
* 表示碰撞器的绝对位置
*/
get: function () {
return es.Vector2.add(this.entity.transform.position, this._localOffset);

View File

@@ -44,7 +44,7 @@ module es {
protected _isColliderRegistered;
/**
* 镖师碰撞器的绝对位置
* 表示碰撞器的绝对位置
*/
public get absolutePosition(): Vector2 {
return Vector2.add(this.entity.transform.position, this._localOffset);