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

            if (Bounds != sel.CollisionBounds)
            {
                wf.SelectCollisionBounds(Bounds);
            }
            wf.SetWidgetRotation(q);

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

            if (Bounds != sel.CollisionBounds)
            {
                wf.SelectCollisionBounds(Bounds);
            }
            wf.SetWidgetScale(s);

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

            if (Bounds != sel.CollisionBounds)
            {
                wf.SelectCollisionBounds(Bounds);
            }
            wf.SetWidgetPosition(p);

            UpdateGraphics(wf);
        }