Exemple #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);
        }
Exemple #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);
        }
Exemple #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);
        }