Copy link to clipboard
Copied
Is there a way to access a phone's accelerometer or gyroscope with Adobe Animate CC's HTML5 canvas feature? I understand we're using Create JS here so it's not super technical, but this is something there must be a relatively simple method to access? I'm not looking to do anything overly complex, just return a value when a device is tilted left/right - so although gyroscope is preferred, accelerometer would suffice.
Copy link to clipboard
Copied
Not the expert, but I found this article that could probably provide you with insights.
Mobile Gyroscope with Javascript and Quaternions Programming Tutorial Part 1 |
Thanks,
Preran
Find more inspiration, events, and resources on the new Adobe Community
Explore Now