Free cookie consent management tool by TermsFeed Policy Generator

Changeset 14979 for trunk/sources


Ignore:
Timestamp:
05/13/17 00:34:16 (8 years ago)
Author:
abeham
Message:

#2739: Improving camera position and look direction

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.BinPacking.Views/3.3/Container3DView.xaml.cs

    r14978 r14979  
    170170      scaleZoom.CenterY = rotateX.CenterY = rotateY.CenterY = container.Height / (2.0 * ratio);
    171171      scaleZoom.CenterZ = rotateX.CenterZ = rotateY.CenterZ = container.Depth / (2.0 * ratio);
     172
     173      camMain.Position = new Point3D(
     174        scaleZoom.CenterX,
     175        3,
     176        3);
     177      camMain.LookDirection = new Vector3D(
     178        0,
     179        scaleZoom.CenterY - camMain.Position.Y,
     180        scaleZoom.CenterZ - camMain.Position.Z);
    172181    }
    173182
Note: See TracChangeset for help on using the changeset viewer.