Beispiel #1
0
        public static void DebugPoint(Creature creature, Point3D point)
        {
            DropItem(creature, 20000000, 0, point.ToWorldPosition(), true);

            Player player = creature as Player;
            if (player != null)
                player.Visible.Update();
        }
Beispiel #2
0
        public static void DebugLine(Creature creature, Point3D start, Point3D end)
        {
            const int iterations = 3;

            Point3D vector = Geom.GetNormal(Geom.GetHeading(start, end))
                .Multiple((float)(start.DistanceTo(end) / (iterations - 1)));

            for (int i = 0; i < iterations; i++)
            {
                DropItem(creature, 20000001, 0, start.ToWorldPosition(), true);
                start.Add(vector);
            }

            Player player = creature as Player;
            if (player != null)
                player.Visible.Update();
        }