完善盾卫技能

This commit is contained in:
huadexuan committed 2026-10-11 22:56:46 +08:00
1 parent 195a459c76
commit 9572db06ad
41 files changed
+25241 -351

No files matched your search

+6 -5
View File
@@ -4,16 +4,17 @@ using UnityEngine;
/// 部署网格的几何参数与坐标换算。
/// 网格与场景里用于标记布阵区域的那个 Plane 完全重合:
/// Plane 世界范围 X -5.75..5.75、Z -15.6..-4.4,中心 (0, ?, -10)。
/// 4 列 × 4 行,正好铺满这块区域;整体位于 NavMesh 覆盖范围内。
/// 5 列 × 4 行,奇数列数可保证中路(第3列/索引2)完美居中对战;
/// 整体位于 NavMesh 覆盖范围内。
/// </summary>
public static class DeployGrid
{
public const int Cols = 4;
public const int Cols = 5;
public const int Rows = 4;
public const float ColStep = 2.875f; // 11.5 / 4
public const float RowStep = 2.8f; // 11.2 / 4
public const float ColStep = 2.30f; // 11.5 / 5 = 2.3
public const float RowStep = 2.80f; // 11.2 / 4 = 2.8
public const float BackZ = -14.2f; // 第 0 排(最靠近镜头)中心 Z = -10 - 1.5*2.8
public const float CellWidth = 2.815f; // 比间距略小,留出缝,看得出是格子
public const float CellWidth = 2.22f; // 2.3 * 0.965,留出网格缝隙
public const float CellDepth = 2.74f;
public const float CellHeight = 0.03f;
public const float GridY = 0.115f; // 格位可视块中心高度(贴在布阵平面之上)