PFonseca

Developer

View site on GitHub Statuses Archives

Accelerometer Input Unity

using UnityEngine;
using System.Collections;

public class AccelerometerInput : MonoBehaviour
{
    void Update ()
    {

        transform.Translate(Input.acceleration.x, 0, -Input.acceleration.z);
    }
}

Published on 07/01/2015 at 00h24 by pfonseca, tags

If you liked this article you can follow me on Twitter

comment Accelerometer Input Unity

Trackbacks are disabled

Powered by Publify