using UnityEngine;
using Volplane;

public class Demo : VolplaneBehaviour
    void OnGyroscope(int playerId, Vector3 data)
        Debug.LogFormat("Detected device motion from player {0:D}.", playerId);

        // Move object according to accelerometer data
        transform.position = data;

Gets called when a device motion input on a players controller is registered. See VInput for a more common input handling.


playerId The player identifier.
data The gyroscope vector representing the device orientation.