Newer
Older
using UnityEngine;
using System.Collections;
public class move : MonoBehaviour
{
void Update ()
{
//Object barco =;
Vector3 dir = Vector3.zero;
dir.z = Input.acceleration.x;
transform.Rotate(dir * Time.deltaTime * 80, Space.World);
//transform.Rotate(dir.z * Vector3.forward * Time.deltaTime * 100, Space.World);
//transform.Translate(Input.acceleration.x, Input.acceleration.y, 0);
}
}