Skip to content

Commit

Permalink
NavMeshQuery refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Selinux24 committed Mar 15, 2024
1 parent 0634a19 commit c2068c8
Show file tree
Hide file tree
Showing 10 changed files with 323 additions and 249 deletions.
10 changes: 10 additions & 0 deletions Engine.PathFinding.RecastNavigation/Detour/Link.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

using static System.Net.Mime.MediaTypeNames;

namespace Engine.PathFinding.RecastNavigation.Detour
{
/// <summary>
Expand Down Expand Up @@ -31,6 +33,14 @@ public struct Link
/// </summary>
public int BMax { get; set; }

/// <summary>
/// Checks if the link spans the whole edge
/// </summary>
public readonly bool ExcedBoundaries()
{
return BMin == 0 && BMax == 255;
}

/// <inheritdoc/>
public override readonly string ToString()
{
Expand Down
Loading

0 comments on commit c2068c8

Please sign in to comment.