Version: 2017.2
public Vector3 gravity ;

Descripción

Retorna el vector de aceleración de gravedad en el frame de referencia del dispositivo.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { public float movementScale; void Update() { Vector3 pos = transform.position; pos.y = Vector3.Dot(Input.gyro.gravity, Vector3.up) * movementScale; transform.position = pos; } }