I am looking for the exact solution. My Entity rotates around myself (the standing position of the person wearing Vision Pro), and not on its own axis. I want Entities to rotate on their own axes.
Let me know if you figure this out.
Just for the context, I can rotate Entities on their own only if it's a WindowGroup with a volumetric type.
So if I define my Space like this:
WindowGroup(id: "hello") {
Hello()
}
.windowStyle(.volumetric)
.defaultSize(width: 1, height: 1, depth: 1, in: .meters)
it works, and my Entity rotates on its own axis with this code .rotation3DEffect(.radians(currentrotateByX), axis: .y)
But if I declare the space like this:
ImmersiveSpace(id: "hello") {
Hello()
}
it starts rotating around me.