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

@@ -2,9 +2,9 @@
"name": "BITKit.WorkdChunk",
"rootNamespace": "",
"references": [
"GUID:a209c53514018594f9f482516f2a6781",
"GUID:14fe60d984bf9f84eac55c6ea033a8f4",
"GUID:9400d40641bab5b4a9702f65bf5c6eb5"
"GUID:a9eec99827e569e45bfe3e5ea7494591",
"GUID:d8b63aba1907145bea998dd612889d6b"
],
"includePlatforms": [],
"excludePlatforms": [],

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;