This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using Unity.Mathematics; | |
using UnityEngine; | |
public class SpatialHashGrid<T> where T : MonoBehaviour | |
{ | |
public SpatialHashGrid(int xSize, int ySize, int zSize) => CellSize = new int3(xSize, ySize, zSize); | |
public SpatialHashGrid(int3 cellSize) => CellSize = cellSize; |