PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience

UserInputService:GetDeviceAcceleration

UserInputService:GetDeviceAcceleration

Sep 30 2018, 9:31 AM PST

This example checks if a user’s device has an enabled accelerometer. If it does, the example prints the current acceleration of the device. If not, the example prints:

Cannot get device acceleration because device does not have an enabled accelerometer!