public IMyPath FindPathGlobal(Vector3D begin, IMyDestinationShape end, MyEntity relativeEntity) { // TODO: relativeEntity NOT IMPLEMENTED // FOR DEBUG DRAW var path = new MyRDPath(this, begin, end); 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); return(path); }
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 void DebugDraw() { this.DebugDrawInternal(); int count = this.m_debugDrawPaths.Count; int index = 0; while (index < count) { MyRDPath path = this.m_debugDrawPaths[index]; if (!path.IsValid || path.PathCompleted) { this.m_debugDrawPaths.RemoveAt(index); count = this.m_debugDrawPaths.Count; continue; } path.DebugDraw(); index++; } }
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); }