Gestures and gravitational acceleration in Unity3d (Temple escape operation)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.