Esempio n. 1
0
        private void Update(WorldForm wf, ref MapSelection sel, Quaternion q)
        {
            if (Polygon != null)
            {
                Polygon.Orientation = q;
            }

            if (Polygon != sel.CollisionPoly)
            {
                wf.SelectCollisionPoly(Polygon);
            }
            wf.SetWidgetRotation(q);

            UpdateGraphics(wf);
        }
Esempio n. 2
0
        private void Update(WorldForm wf, ref MapSelection sel, Vector3 s)
        {
            if (Polygon != null)
            {
                Polygon.Scale = s;
            }

            if (Polygon != sel.CollisionPoly)
            {
                wf.SelectCollisionPoly(Polygon);
            }
            wf.SetWidgetScale(s);

            UpdateGraphics(wf);
        }
Esempio n. 3
0
        private void Update(WorldForm wf, ref MapSelection sel, Vector3 p)
        {
            if (Polygon != null)
            {
                Polygon.Position = p;
            }

            if (Polygon != sel.CollisionPoly)
            {
                wf.SelectCollisionPoly(Polygon);
            }
            wf.SetWidgetPosition(p);

            UpdateGraphics(wf);
        }