修复切换场景未移除问题
This commit is contained in:
@@ -122,8 +122,8 @@ class SpatialHash {
|
||||
return cell;
|
||||
}
|
||||
|
||||
private cellCoords(x: number, y: number): Point {
|
||||
return new Point(Math.floor(x * this._inverseCellSize), Math.floor(y * this._inverseCellSize));
|
||||
private cellCoords(x: number, y: number): Vector2 {
|
||||
return new Vector2(Math.floor(x * this._inverseCellSize), Math.floor(y * this._inverseCellSize));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user