08-20-2020, 12:09 PM
so this works to reset the camera to the original position but how do i guarantee that all objects are in the field of view?
Code:
private void Btn_FitAllIn_Click(object sender, RoutedEventArgs e)
{
Camera1.TargetPosition = new Point3D(0, 1000, 0);
Camera1.Heading = 150;
Camera1.Attitude = -25;
Camera1.Bank = 0;
Camera1.Distance = 250;
Camera1.FitIntoView();
}