예제 #1
0
        public int3 GetIndexVoxel(float3 position)
        {
#if ENABLE_UNITY_COLLECTIONS_CHECKS
            AtomicSafetyHandle.CheckReadAndThrow(_safety);
#endif
            position -= _data->WorldBoundsMin;

            position /= _data->CellSize;

            return(position.FloorToInt());
        }