This commit is contained in:
CortexCore
2024-03-11 00:28:51 +08:00
parent 2c8dfd3c86
commit 605ccbcf8d
15 changed files with 917 additions and 4 deletions

View File

@@ -1,13 +1,23 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.Linq;
using NativeQuadTree;
using Unity.Mathematics;
namespace BITKit.WorldChunk
{
public class WorldChunkManager : MonoBehaviour
{
public Vector2Int playerSize;
private Rect playerRect;
private void Start()
{
var quadTree = new NativeQuadTree<int>(new AABB2D(default, new float2(1024,1024)));
}
private void FixedUpdate()
{
var cameraPos = Camera.main.transform.position;