Martin Nielsen ᯅ @martinn.dev · Jan 9

I wanted ctrl-dragging on the rendered image to rotate the viewer just like in the visionOS simulator. And unlike in the simulator I also wanted to be able to roll the image. (with a slider) #visionOS #metalAPI

6 likes 1 replies

?

Replies

Martin Nielsen ᯅ · Jan 9

The trick is to keep the rotation separate and update it based on the drag. (We don’t want to rotate a transform that has already been rotated) The Spatial framework is super handy for this! Disclaimer: I am just figuring this stuff out now.