Browse on the Asset Store »* This is an affiliate link, meaning we may earn a small commission if you purchase something through it, at no extra cost.
Sensor Camera (First Person): Gyroscope & Accelerometer
Sensor Camera - cross-platform First Person Camera Controller for FPS Game view, automatically selecting Motion Sensor (Gyroscope/Accelerometer) on Mobile Devices or Mouse/Keyboard on Desktop Platforms.
Sensor Camera is a cross-platform First Person Camera Controller for FPS Game view. It automatically selects a Motion Sensor (Gyroscope or Accelerometer) on Mobile Devices or Mouse + Keyboard on Desktop Platforms.
Features:
* Bring the enchanting Power of the Universal First-Person View Camera into your amazing Game or App. * No limitations between Input Devices and Target Platforms. * Demo Scene with Cubes. * Menu Scene with Safety Tutorial. * Loading Screen to switch scenes seamlessly.
Camera Modes:
* The camera automatically selects User Input Device: Gyroscope → Accelerometer → Mouse + Keyboard. * There are no limitations between Input Devices and Target Platforms.
Motion Sensors: Gyro vs. Accelerometer
* Motion Sensors are usually used on Mobile Devices. * The more accurate sensor will be selected: Gyroscope Mode (3DoF) or Accelerometer Mode (horizontal rotation is limited). * 90% of all mobile devices have an accelerometer and video camera, but only 40% have a gyroscope.
Spectator (Flythrough) Mode: Mouse + Keyboard
* If the User Device has not any Motion Sensor, then Mouse + Keyboard will be used for camera motion first. * It's usually used on Desktop Platforms: Smooth Movement using WASDQE keys and Smooth Camera Rotation using the Right Mouse Button (by Default).
Limitations
* Hardware nuances of the gyroscope & accelerometer (asset code does not affect it): different devices have different sensors, and therefore different deviations and drifts. * Drift is natural for the mobile sensors.
Docs & Support
* I state the work of the asset only with uploaded Unity version or with the version indicated in the latest online docs that contain all instructions for the 1st launch. * If you find a bug, or you can't use the asset as you need, please get the support before leaving a review on the asset store.
Technical Details:
Tested with Mobile Platforms and Motion Sensors: * iOS on iPhone 15 * Android on Samsung Galaxy A71 * WebGL in Google Chrome on: + Own Website using this tutorial for iOS & Android + CrazyGames Website for Android
Tested with Desktop Platforms and Right Mouse Button + WASDQE keys: * Windows * macOS * WebGL in Google Chrome on: + Own Website using this tutorial + CrazyGames Website