I'm trying to understand better how to 'navigate' around a large USD scene inside a RealityView in SwiftUI (itself in a volume on VisionOS).
With a little trial and error I have been able to understand scale and translate transforms, and I can have the USD zoom to 'presets' of different scale and translation transforms.
Separately I can also rotate an unscaled and untranslated USD, and have it rotate in place 90 degrees at a time to return to a rotation of 0 degrees.
But if I try to combine the two activities, the rotation occurs around the center of the USD, not my zoomed location.
Is there a session or sample code available that combines these activities? I think I would understand relatively quickly if I saw it in action.
Thanks for any pointers available!
1
0
1.4k