新增physics.debugDraw默认绘制

This commit is contained in:
yhh
2021-05-28 15:45:45 +08:00
parent 28145e876f
commit 8b7baf7f86
6 changed files with 13 additions and 20 deletions

View File

@@ -3392,12 +3392,8 @@ declare module es {
*/
cellAtPosition(x: number, y: number, createCellIfEmpty?: boolean): Collider[];
}
/**
* 包装一个Unit32列表碰撞器字典
* 它的主要目的是将int、int x、y坐标散列到单个Uint32键中使用O(1)查找。
*/
class NumberDictionary {
_store: Map<number, Collider[]>;
_store: Map<string, Collider[]>;
add(x: number, y: number, list: Collider[]): void;
/**
* 使用蛮力方法从字典存储列表中移除碰撞器
@@ -3405,7 +3401,7 @@ declare module es {
*/
remove(obj: Collider): void;
tryGetValue(x: number, y: number): Collider[];
getKey(x: number, y: number): number;
getKey(x: number, y: number): string;
/**
* 清除字典数据
*/