Gyroscope and Accelerometer for WebGL

LullaByte

(0)
FREE
Publisher LullaByte
File size 77.34kB
Number of files 13
Latest version 1
Latest release date 2024-02-12 05:58:14
First release date 2024-02-12 05:58:14
Supported Unity versions 2018.4.2 or higher

This code package provides a Unity script, SK_DeviceSensor, designed to facilitate the integration of gyroscope and accelerometer data into Unity projects, specifically tailored for WebGL builds. The package includes functionality to start and stop listeners for both gyroscope and accelerometer events.


Key Features:

  1. Gyroscope Integration: Start and stop listeners for gyroscope data.
    Conversion methods to translate gyroscope readings into Quaternion rotations.
  2. Accelerometer Integration: Start and stop listeners for accelerometer data.
    Conversion methods to process accelerometer readings and rotations.
  3. Ease of Use:Simple static mStart and stop listeners for accelerometer data. Conversion methods to process accelerometer readings and rotations eObject in the Unity scene.

Top Publisher Assets