Show / Hide Table of Contents

Interface IMyPathfindingSessionComponent

Describes pathfinding session component

Namespace: Sandbox.ModAPI
Assembly: Sandbox.Common.dll
Syntax
public interface IMyPathfindingSessionComponent

Methods

FindAvoidPath(IMyEntity, Vector3D, Vector3D, Single, out MyAutopilotPathfindingState)

Finds the path between start and end position

Declaration
MyPath<MyPathVertex> FindAvoidPath(IMyEntity entity, Vector3D startPosition, Vector3D endPosition, float shipRadius, out MyAutopilotPathfindingState state)
Parameters
Type Name Description
IMyEntity entity

entity

Vector3D startPosition

start position

Vector3D endPosition

end position

System.Single shipRadius

radius of ship(grid) which is looking for path

MyAutopilotPathfindingState state

result state

Returns
Type Description
VRage.Algorithms.MyPath<VRage.Game.AI.MyPathVertex>
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾