Files
opengenesislinkserver/OpenSim/Region/Framework/Interfaces/IOglNativeTerrainQuery.cs
T
OpenGenesis (MPL 2.0) 2c50443d46 feat(pathfinding): static terrain llGetStaticPath LSL route and status codes (#135)
* feat(pathfinding): add static terrain waypoint query to region navigation interface

* feat(pathfinding): return bounded static terrain route with SL failure statuses

* feat(lsl): expose llGetStaticPath and SL path status constants

* feat(lsl): expose llGetStaticPath and SL path status constants

* feat(lsl): expose llGetStaticPath and SL path status constants

* feat(lsl): implement llGetStaticPath with real bounded terrain route and SL status codes

* ci(pathfinding): verify llGetStaticPath LSL binding and failure status semantics

* feat(pathfinding): pure bounded terrain static path query with explicit SL failure codes

* fix(pathfinding): guard whole static route calculation against terrain rebuild epochs

* test(pathfinding): route/invalid start/goal/radius/unreachable statuses for static LSL path

* ci(pathfinding): guard native static route delegation, status handling and LSL interface

* docs(pathfinding): terrain llGetStaticPath implementation and live LSL test recipe
2026-10-10 18:00:23 +02:00

21 lines
801 B
C#

// SPDX-License-Identifier: MPL-2.0
using OpenMetaverse;
namespace OpenSim.Region.Framework.Interfaces
{
/// <summary>
/// Opt-in native terrain-only navigation query for script API use.
/// Implementations must reject invalid or stale snapshots. Does not
/// imply a Firestorm/Havok multi-layer NavMesh is available.
/// </summary>
public interface IOglNativeTerrainQuery
{
bool TryGetClosestNavPoint(float x, float y, float z,
float radius, out Vector3 nearest);
// Returns SL-compatible numeric status codes and a bounded list of
// waypoints. This implementation's geometry is terrain-only.
bool TryGetStaticTerrainPath(Vector3 start, Vector3 end,
float radius, out Vector3[] waypoints, out int status);
}
}