Skip to content

ynagatomo/PilotAGlider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pilot A Glider for visionOS 2

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.

Game Controller

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. :)

Behind the Scenes

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.

Next Steps

  1. 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.
  2. Play sound effects such as engine sounds and BGM.
  3. Display information on cockpit instruments or HUD.
  4. Add environmental VFX such as rain and fog.
  5. Add target rings to crawl through as game elements. (move objects relative to each other)
  6. Add hand gestures to control the glider instead of a Game Controller.
  7. Add IBL using the HDRI/360 images.
  • You may want to add the roll movement, but be careful as this may cause motion sickness.

Contribution

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.

Credit

  • 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

References

  • Apple Documentation: Game Controller Framework WEB
  • WWDC20: Bring keyboard and mouse gaming to iPad WEB

License

MIT License

since Nov, 2024

About

A simple visionOS app that lets users pilot a glider with a Game Controller.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages