flightsim
来源:互联网 发布:js中的对象是什么 编辑:程序博客网 时间:2024/05/20 10:56
Code (csharp):
- // -------------------- Kalkulationen Salto vorwärts abblocken / Calculations Block salto forward -----------------------------------------------------
- // Variable divesalto
- // sturzflug salto vorwärts blocken || dive salto forward blocking
- if (rotationx < 90) divesalto=rotationx/100.0;//Updown
- if (rotationx > 90) divesalto=-0.2;//Updown
- //Variable diveblocker
- // Blockt seitlichenTaumelflug beim Sturzflug || blocks sideways stagger flight while dive
- if (rotationx <90) diveblocker=rotationx/200.0;
- else diveblocker=0;
- //----------------------------Alles zurückdrehen / everything rotate back ---------------------------------------------------------------------------------
- // Zurückrotieren wenn Key in die andere Richtung zeigt | rotateback when key wrong direction
- if ((rotationz <180)(Input.GetAxis ("Horizontal")>0)) transform.Rotate(0,0,rightleftsoft*Time.deltaTime*80);
- if ((rotationz >180)(Input.GetAxis ("Horizontal")<0)) transform.Rotate(0,0,rightleftsoft*Time.deltaTime*80);
- //Zurückdrehen Z Achse generell. Limitiert auf Horizontal Button ist nicht gedrückt
- //Rotate back in z axis general, limited by no horizontal button pressed
- if (!Input.GetButton ("Horizontal")){
- if ((rotationz < 135)) transform.Rotate(0,0,rightleftsoftabs*Time.deltaTime*-100);
- if ((rotationz > 225)) transform.Rotate(0,0,rightleftsoftabs*Time.deltaTime*100);
- }
- //Zurückdrehen X Achse || Rotate back X axis
- if ((!Input.GetButton ("Vertical"))(groundtrigger.triggered==0)){
- if ((rotationx >0)(rotationx < 180)) transform.Rotate(Time.deltaTime*-50,0,0);
- if ((rotationx >0)(rotationx > 180)) transform.Rotate(Time.deltaTime*50,0,0);
- }
0 0
- flightsim
- NEUQ 1088: Abbreviation
- HashMap与Hashtable的区别
- [学习笔记]JavaScript基础--分享到
- Logd之LogBufferElement
- 黑马程序员——20,IO流,FileWriter,FileReader
- flightsim
- Android Gallery3D源码分析(一)
- springmvc 集合类型绑定
- C++ 类的静态成员详细讲解
- 新浪博客规则发布失败代码(分享)
- 环境的问题真麻烦 message Unable to compile class for JSP:
- muduo::Acceptor、TcpServer分析
- 2015多校第四场1003 hdu 5329 Question for the Leader
- [学习笔记]JavaScript基础--运动基础