Example #1
0
        public Vec3 GetPivotPoint(Vec3 center, AABB bounds, Pivot pivot)
        {
            Vec3 vec = center;
            switch (pivot)
            {
            case Pivot.Left:
                vec += this.axisX * bounds.min.X;
                break;

            case Pivot.Right:
                vec += this.axisX * bounds.max.X;
                break;

            case Pivot.Down:
                vec += this.axisY * bounds.min.Y;
                break;

            case Pivot.Up:
                vec += this.axisY * bounds.max.Y;
                break;
            }
            return vec;
        }
Example #2
0
 public void UpdateSize(AABB size)
 {
     foreach (Control current in this.m_uiControls.Keys)
     {
         ParamObjectInventoryTree paramObjectInventoryTree = current as ParamObjectInventoryTree;
         if (paramObjectInventoryTree != null)
         {
             paramObjectInventoryTree.ObjectSize = size;
         }
     }
 }