临时提交

This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2024-12-03 19:54:47 +08:00
parent e77dd9e841
commit 81c2bc83ff
145 changed files with 2922 additions and 30412 deletions

View File

@@ -1,7 +1,7 @@
using JNGame.PathFinding;
using UnityEngine;
namespace Lockstep.Game
namespace JNGame.Game
{
/// <summary>
/// 地图调试可视化

View File

@@ -36,15 +36,15 @@ namespace Game.Logic.System.Usual
DtCrowdAgentUpdateFlags.DT_CROWD_OPTIMIZE_TOPO |
DtCrowdAgentUpdateFlags.DT_CROWD_OBSTACLE_AVOIDANCE;
DtCrowdAgentParams ap = new DtCrowdAgentParams();
ap.radius = (LFloat)0.6f;
ap.height = (LFloat)2f;
ap.maxAcceleration = (LFloat)8.0f;
ap.maxSpeed = (LFloat)6f;
ap.collisionQueryRange = ap.radius * (LFloat)12f;
ap.pathOptimizationRange = ap.radius * (LFloat)30f;
ap.radius = new LFloat("",600);
ap.height = new LFloat("",2000);
ap.maxAcceleration = new LFloat("",8000);
ap.maxSpeed = new LFloat("",6000);
ap.collisionQueryRange = ap.radius * (new LFloat("", 12000));
ap.pathOptimizationRange = ap.radius * new LFloat("",30000);
ap.updateFlags = updateFlags;
ap.obstacleAvoidanceType = 0;
ap.separationWeight = (LFloat)2f;
ap.separationWeight = new LFloat("",2000);
return ap;
}

View File

@@ -32,7 +32,7 @@ namespace Service
public override async Task OnInit()
{
var map = await Resources.LoadAsync<TextAsset>("Samples/Battle/Map/NavMesh/Map_1001.navmesh") as TextAsset;
var map2 = await Resources.LoadAsync<TextAsset>("Samples/map1") as TextAsset;
var map2 = await Resources.LoadAsync<TextAsset>("map1") as TextAsset;
if (map != null) MapData = JsonUtil.ToObject<StaticMapData>(map.text);
if (map2 != null) MapData2 = JsonUtil.ToObject<MeshData>(map2.text);
if (MapData != null) Debug.Log("加载地图资源完成");