replace comment in DtNode

This commit is contained in:
ikpil 2024-02-05 13:56:39 +09:00
parent 0909818379
commit af72cf3cc8
1 changed files with 8 additions and 25 deletions

View File

@ -27,31 +27,14 @@ namespace DotRecast.Detour
{ {
public readonly int index; public readonly int index;
/** Position of the node. */ public RcVec3f pos; // Position of the node.
public RcVec3f pos = new RcVec3f(); public float cost; // Cost from previous node to current node.
public float total; // Cost up to the node.
/** Cost of reaching the given node. */ public int pidx; // Index to parent node.
public float cost; public int state; // extra state information. A polyRef can have multiple nodes with different extra info. see DT_MAX_STATES_PER_NODE
public int flags; // Node flags. A combination of dtNodeFlags.
/** Total cost of reaching the goal via the given node including heuristics. */ public long id; // Polygon ref the node corresponds to.
public float total; public List<long> shortcut; // Shortcut found by raycast.
/** Index to parent node. */
public int pidx;
/**
* extra state information. A polyRef can have multiple nodes with different extra info. see DT_MAX_STATES_PER_NODE
*/
public int state;
/** Node flags. A combination of dtNodeFlags. */
public int flags;
/** Polygon ref the node corresponds to. */
public long id;
/** Shortcut found by raycast. */
public List<long> shortcut;
public DtNode(int index) public DtNode(int index)
{ {