using UnityEngine;
using Volplane;

public class Demo : VolplaneBehaviour
    void OnAccelerometer(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 acceleration vector representing the device motion.