Version: 2017.1
public Vector3 gravity ;

설명

Returns the gravity acceleration vector expressed in the device's reference frame.

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; } }