🎮 Feature Request — Gyroscope / Device Tilt Steering
समस्या (Problem)
Mobile पर रथ-संचालन (steering) के लिए touch buttons awkward हैं।
Gyroscope से tilt-based steering एक natural और immersive experience देगा।
प्रस्ताव (Proposed Solution)
Device को बाईं/दाईं ओर झुकाने से रथ उसी दिशा में मुड़े।
Technical Approach
// DeviceOrientation API
window.addEventListener('deviceorientation', (e) => {
const tilt = e.gamma; // -90 to +90 degrees
if (tilt < -10) keys['ArrowLeft'] = true;
if (tilt > 10) keys['ArrowRight'] = true;
if (Math.abs(tilt) <= 10) {
keys['ArrowLeft'] = false;
keys['ArrowRight'] = false;
}
});
Deadzone
-10° to +10° — neutral (रथ सीधा)
< -10° — बाईं ओर
> +10° — दाईं ओर
Permissions
- iOS 13+ पर
DeviceOrientationEvent.requestPermission() ज़रूरी
- Android पर automatic
शास्त्र-संगत
शरीर का झुकाव = मन का झुकाव।
रथ की दिशा साधक के संकल्प से तय होती है — स्पर्श नहीं, भाव से।
Dependencies
- Mobile Touch Controls issue पहले complete होनी चाहिए
main.js में gyroscope init block
🎮 Feature Request — Gyroscope / Device Tilt Steering
समस्या (Problem)
Mobile पर रथ-संचालन (steering) के लिए touch buttons awkward हैं।
Gyroscope से tilt-based steering एक natural और immersive experience देगा।
प्रस्ताव (Proposed Solution)
Device को बाईं/दाईं ओर झुकाने से रथ उसी दिशा में मुड़े।
Technical Approach
Deadzone
-10° to +10°— neutral (रथ सीधा)< -10°— बाईं ओर> +10°— दाईं ओरPermissions
DeviceOrientationEvent.requestPermission()ज़रूरीशास्त्र-संगत
Dependencies
main.jsमें gyroscope init block