public IMyPath FindPathGlobal(Vector3D begin, IMyDestinationShape end, VRage.Game.Entity.MyEntity relativeEntity) { Vector3D vectord; float num; IMyEntity entity; MyRDPath path = new MyRDPath(this, begin, end); if (!path.GetNextTarget(begin, out vectord, out num, out entity)) { path = null; } return(path); }
public IMyPath FindPathGlobal(Vector3D begin, IMyDestinationShape end, MyEntity relativeEntity) { // TODO: relativeEntity NOT IMPLEMENTED // FOR DEBUG DRAW var path = new MyRDPath(this, begin, end); Vector3D targetPos; float targetRadius; VRage.ModAPI.IMyEntity relEnt; // If no next target, path is not found if (!path.GetNextTarget(begin, out targetPos, out targetRadius, out relEnt)) { path = null; } return(path); }