private void sensor_object(StandardControl animate_sym, int Value) { if (Value == 1) { animate_sym.DiscreteValue1 = true; animate_sym.DiscreteValue2 = false; } else { animate_sym.DiscreteValue1 = false; animate_sym.DiscreteValue2 = true; } }
protected void InitGame() { Root r = Root.Instance; Root.Instance.Gui.windows.Clear(); PlayerCam = new AdvancedCamera(CameraMode.Normal, null, 50); PlayerCam.Position = new Vector3(0, 1.5f, 0); //PlayerCam.Smooth = true; FlyByCam = new AdvancedCamera(CameraMode.FlyBy, null, 1000); //FlyByCam.Smooth = true; FreeCam = new AdvancedCamera(CameraMode.Normal); FreeCam.Position = new Vector3(0, 50, 0); RotateCam = new AdvancedCamera(CameraMode.Normal); RotateCam.Position = new Vector3(1429, 202, 62); RotateCam.rotationspeed.Y = 45.0f / 180.0f * (float)Math.PI; RotateCam.Fov = 90; Cameras = new AdvancedCamera[] { FlyByCam, PlayerCam, FreeCam, RotateCam }; r.Scene.camera = FlyByCam; CameraControl = new StandardControl(FreeCam); CurrentCameraNumber = 0; }