public void InitModel(Planet3D p) { Planet = p; SolarSystem = p.SolarSystem; UpdateTransform(); UpdateOrbit(); }
public void InitModel(SolarSystem3D ss) { SolarSystem = ss; UpdateTransform(); UpdateOrbit(); foreach (var s in Satellites) { s.InitModel(this); Children.Add(s); } }
public Window1() { InitializeComponent(); view1.Camera.Position = new Point3D(0, 400, 500); view1.Camera.LookDirection = new Vector3D(0, -400, -500); SolarSystem = view1.Children[2] as SolarSystem3D; DataContext = SolarSystem; Loaded += new RoutedEventHandler(Window1_Loaded); }