This commit is contained in:
yhh
2020-07-31 19:33:04 +08:00
parent 40fe7a57db
commit bc6626865e
6 changed files with 136 additions and 17 deletions

View File

@@ -5,6 +5,10 @@ module es {
/** 接受layerMask的所有方法的默认值 */
public static readonly allLayers: number = -1;
private static _spatialHash: SpatialHash;
/**
* raycast是否检测配置为触发器的碰撞器
*/
public static raycastsHitTriggers: boolean = false;
public static reset() {
this._spatialHash = new SpatialHash(this.spatialHashCellSize);