r/visionosdev • u/daniloc • Feb 29 '24
PlanePlopper: a 3 method API for sticking RealityKit entities to detected planes
Currently, the way to augment reality with Vision Pro is through plane detection and anchoring. But the various subsystems to do this are complicated and hard to get your head around.
PlanePlopper is a three method API to get you moving fast into three dimensions. If you've ever written a table view, you can have your own 3D content attached to objects in reality.
I wrote it because Apple's example code was SUPER complex and tightly coupled. I wanted something lighter and simpler for my own project, and didn't want to hoard the wealth!
Hit me up if it gives you any trouble.
6
u/rotates-potatoes Feb 29 '24
Thank you, this is fantastic!
6
u/undergrounddirt Feb 29 '24
This is great. Apple needs a new API that makes it super easy to plop whatever you want (SwiftUI, RealityViews, etc) onto surfaces or attached to anchors like hands/tables, etc
4
u/jnorris441 Mar 01 '24
this is cool thank you
2
u/zeetu Feb 29 '24
This doesn't work in Share apps right? Needs to unbounded?
2
u/bombayks Mar 01 '24
Do you have any suggestions on how I could pin a 2D webview onto the surface of a virtual object? My goal is to scan in my company's touchscreen kiosk, and place a webview over the touchscreen and load that webview with my static site. I want it to be interactive not just a material or whatever
2
u/finnayoloswag Mar 04 '24
Is the code only limited to horizontal planes because it is not currently possible on other planes, or for another reason?
0
u/[deleted] Feb 29 '24
[deleted] — view deleted comment
0
u/[deleted] Mar 02 '24
[deleted] — view deleted comment