This project shows a visionOS app that let users control a glider with a Game Controller like a PlayStation Dualsense. This app represents a very simple starting point and has no added game elements. Arrange this project as you like and make it a fun game.
There is a concern about air sickness. Avoid long flights.
- GitHub : https://github.com/ynagatomo/PilotAGlider
- Xcode 16.2 beta 2 , visionOS 2.1 or 2.2 beta 2+ (visionOS 2.2 beta does not work with this project, due to its issue on Game Controller support.)
- Since this app uses a Game Controller to control a glider, you need to use an Apple Vision Pro and a Game Controller like a PlayStation Dualsense.
This app supports only Game Controller as a control way of the glider. You'll soon want to use hand gestures instead. I'll leave it up to you. :)
Users pilot a glider inside a sphere, change the pitch and yaw of the glider using the game controller. However, Roll movement is not used as it can cause air sickness.
- Replace the image with HDRI/360 images of the scenery you would like to fly through.
- RealityKitContent package has several images inside, so you can choose some of them with RCP.
- You can also change the images by Swift code programmatically.
- Add your favorite images and use them.
- Play sound effects such as engine sounds and BGM.
- Display information on cockpit instruments or HUD.
- Add environmental VFX such as rain and fog.
- Add target rings to crawl through as game elements. (move objects relative to each other)
- Add hand gestures to control the glider instead of a Game Controller.
- Add IBL using the HDRI/360 images.
- You may want to add the roll movement, but be careful as this may cause motion sickness.
You probably already have a lot of ideas. I want to keep this project simple so that it can be a starting point for many people. So instead of sending a PR for your awesome improvement, please tell me your forked repo. I will add that information to this page.
Thanks in advance.
- Glider 3D Model: UNDERPOLY Free Spailplane Glider (CC BY 4.0) Sketchfab
- HDRI Images
- Kloppenheim 06 (Pure Sky) (CC0), Greg Zaal, Jarod Guest Poly Haven
- Blouberg Sunrise 2 (CC0), Greg Zaal, Rico Cilliers Poly Haven
- Alps Field (CC0), Andreas Mischok Poly Haven
- Pizzo Pernice (CC0), Andreas Mischok Poly Haven
- Kiara 1 Dawn (CC0), Greg Zaal Poly Haven
- Rogland Clear Night (CC0), Greg Zaal Poly Haven
- Apple Documentation: Game Controller Framework WEB
- WWDC20: Bring keyboard and mouse gaming to iPad WEB
MIT License
since Nov, 2024





