Welcome to Unity Learning,Unity training ,UnityEnterprise TrainingEducation Area, there are manyu3d Resources,u3d Training Video,u3d Tutorials,U3d Frequently Asked questions,u3d Project Source code, the "Dog Planing Learning Network" Unity's Ultimate Academy, dedicated to building the industry unity3d Training , learning the first brand.
Now the special Fire Parkour game "Temple Escape" is developed with the Unity3d engine, the characters in the game control, the finger toggle (paddling) character on the turn, using the mobile phone's gravity sensor to adjust the character around.
Today also tried to write down the use of unity to achieve such a function, in the official API has input.touches (Touch list), Touthpase (Touch State), input.acceleration acceleration sensor
About input.acceleration in the cell phone coordinates are like this, the next time the picture affixed
Just cut a key part of the bar, the specific details have not been used in conjunction with the model, the use of a good code
For more information, please visit the "Dog Planing Learning Network" Unity Ultimate Academy Http://edu.gopedu.com
Statement: This document comes from the "Dog Planing Learning Network" Community-unity Extreme College, is a self-published Unity3d study articles, if anything violates your relevant interests, please communicate with the official, we will deal with the real-time.
Gestures and gravitational acceleration in Unity3d (Temple escape operation)