Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Using accelerometer to trigger animation

Discussion in 'Scripting' started by ryanneedshelp, Jul 24, 2015.

  1. ryanneedshelp

    ryanneedshelp

    Joined:
    Apr 15, 2013
    Posts:
    1
    Sorry if someone has posted a question similar but I'm looking to trigger an animation when the user shakes the phone or tablet. It would be nice to incorporate scaling thresholds like for instance depending on the intensity of the shake different animations will be triggered. But just a basic framework of how to trigger animations with phone motion would be nice. Thanks in advance. Extra info: android os
     
    Last edited: Jul 24, 2015
  2. chronochris

    chronochris

    Joined:
    Jun 7, 2015
    Posts:
    61