Strange behavior/bug in vision os "Hello World" project?

Dear all,

I was exploring the example vision os project "Hello World" below: https://developer.apple.com/documentation/visionos/world

And there is some strange behavior that looks like some bug to me. One is in the Orbit Module View, the .dragRotation closure only works for the "Satellite" and "Telescope" tab, but not the "Moon" tab. And also the moon model somehow sticks out in the z depth direction which blocks the view to the tabs. Snapshot below:

figured out, it was the .pi constant that is causing the issue, when replacing

I finally figured out that it was the ".pi" constant in OrbitModule.swift that was causing the issue, and when I change it to some literal floating number (even change it to the .pi equivalent value of 3.14159), the .dragRotation closure now starts to work for the "Moon" tab and the moon model is also back to normal z depth as well:

Any idea is this a known issue with certain xcode or vision pro simulator version? I was using xcode 15.0 beta 8 and visionOS 1.0 simulator

Strange behavior/bug in vision os "Hello World" project?
 
 
Q