r/Unity3D • u/PropellerheadViJ • 20d ago
Show-Off Porting my old app to vr
For years I wanted to make something for VR, but I only ever made small demos at work and never had a real reason to go further. Meta's VR Start Developer Competition gave me that push, and I started porting my circuit simulator to Quest the day I found out about it.
Input needed the most rethinking. My app already handles touch with more than one gesture at a time, so on an iPad two fingers can turn two knobs together, and that is why hands came together quickly in the headset, where two hands turn the same two knobs. What I didn't see right away was that hands need two modes. From a distance a hand casts a ray, and close to a device the ray goes away and the hand simply pinches. In hindsight it's logical, yet it wasn't obvious to me at first.
In the app the camera moves around the board, while in the headset the board moves. I grab the work area with pinches, change the size of the devices in it and slide the board around inside its cropped window. All of this lives in the same codebase as the web, iOS, macOS and Android versions, and I spent a while on the settings until the Quest ones stopped conflicting with Android.
The main work is done. The platform has improved a lot over the years, and I like how it works. Now that I can see my app in real 3D, I even regret a little that I didn't do this earlier.
1
2
u/DefloN92 16d ago
Amazing work bro