I want to achieve same thing in IOS with motion sensor.
Please refer the video: Video (https://drive.google.com/drive/folders/1qwDemEvX4ureeVXW4A1c0BcH_MVeN7U3 )
want to achieve same which is showing in video.
I have tried with accelerometer data but didn't get expected result. This is what i get
Video URL:->
https://drive.google.com/file/d/1cLZ33blP0ydRSnHvpiK1pSHNAkh_LgZR/view?usp=share_link