예제 #1
0
            public override void UpdateApp()
            {

                VisualFX.Update();

               // if (spawn)
              //  {
                 //   PS1.Spawn(25, mx, my, 1.0f, 0, -5, 0);
               /// }
                //la = la + 2;

                //float ra = la * (float)Math.PI / 180.0f;

                //l1.X = (float)Math.Cos(ra) * 300;
                //l1.Y = (float)Math.Sin(ra) * 300;


              

                if (StarEngine.Input.AppInput.MouseButton[0])
                {

                    G1.Move(StarEngine.Input.AppInput.MouseMove.X / G1.Z, StarEngine.Input.AppInput.MouseMove.Y / G1.Z);

                }

                if (StarEngine.Input.AppInput.MouseButton[1])
                {

                    G1.Rot += StarEngine.Input.AppInput.MouseMove.X;

                }



                G1.Z += (StarEngine.Input.AppInput.MouseMove.Z * 0.05f) * G1.Z;
                if (G1.Z < 0.1f) G1.Z = 0.1f;
                if (G1.Z > 20) G1.Z = 20.0f;

            }