예제 #1
0
        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;
        }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }
예제 #4
0
        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++;
            }
        }
예제 #5
0
        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);
        }