From 2a45ec021c591e2f6460ef758ecc64a044ae058b Mon Sep 17 00:00:00 2001 From: ikpil Date: Fri, 31 May 2024 23:25:35 +0900 Subject: [PATCH] added DT_NODE_PARENT_BITS --- src/DotRecast.Detour/DtDetour.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/DotRecast.Detour/DtDetour.cs b/src/DotRecast.Detour/DtDetour.cs index 8ffb854..c164541 100644 --- a/src/DotRecast.Detour/DtDetour.cs +++ b/src/DotRecast.Detour/DtDetour.cs @@ -35,7 +35,11 @@ namespace DotRecast.Detour /// A value that indicates the entity does not link to anything. public const int DT_NULL_LINK = unchecked((int)0xffffffff); - + + public const int DT_NODE_PARENT_BITS = 24; + public const int DT_NODE_STATE_BITS = 2; + public const int DT_MAX_STATES_PER_NODE = 1 << DT_NODE_STATE_BITS; // number of extra states per node. See dtNode::state + /// A flag that indicates that an off-mesh connection can be traversed in /// both directions. (Is bidirectional.) public const int DT_OFFMESH_CON_BIDIR = 1;