Post

Replies

Boosts

Views

Activity

Comment on HelloWorld example: How to make the globe in immersive space interactable?
I think my biggest problem is that the existing DragRotationModifier rotates the entire RealityView around the world origin. If it would rotate around the local axis of the globe, it would work as I would expect it. But I cannot figure out how to do that. Basically, I would have to apply the "rotation3DEffect" the modifier sets on the RealityView's content on the entity of the globe instead, which is a child of the content.
Feb ’24
Comment on HelloWorld example: How to make the globe in immersive space interactable?
Tried it out, but didn't work as I expected. I tried this code: .gesture(RotateGesture().targetedToAnyEntity().onChanged({ value in guard let angle = earthEntity?.transform.rotation.angle else { return } earthEntity?.transform.rotation = simd_quatf(Rotation3D(angle: Angle2D(radians: value.rotation.radians), axis: .y)) })) but it starts the rotation at 0. If I try to add the current rotation of the earth in radians instead, the globe rotates weirdly.
Feb ’24
Comment on visionOS: How to debug Safari / WkWebView?
Thanks, I found this property in the meantime. I think this should be mentioned on this page: https://developer.apple.com/documentation/safari-developer-tools/inspecting-visionos The way I read this, it's enough to run you app in the simulator. But even if you try to debug Safari, it will not work. Setting the isInspectable flag worked, though.
Feb ’24