Files
TEngine/Assets/GameScripts/DotNet/Model/Share/Module/Recast/PathfindingComponent.cs
ALEXTANG 336d4b2eb9 [+] 接入ET8服务端
[+] 接入ET8服务端
2023-07-13 12:23:48 +08:00

25 lines
734 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
namespace ET
{
/// <summary>
/// 同一块地图可能有多种寻路数据玩家可以随时切换怪物也可能跟玩家的寻路不一样寻路组件应该挂在Unit上
/// </summary>
[ComponentOf(typeof(Unit))]
public class PathfindingComponent: Entity, IAwake<string>, IDestroy
{
public const int FindRandomNavPosMaxRadius = 15000; // 随机找寻路点的最大半径
public float[] extents = {15, 10, 15};
public string Name;
public IntPtr navMesh;
public float[] StartPos = new float[3];
public float[] EndPos = new float[3];
public float[] Result = new float[Recast.MAX_POLYS * 3];
}
}