Closed tcm390 closed 1 year ago
now we are using camera position to check if the avatar rotation is ≥ ±90º, but it does not work with some edge cases. In this PR, I use camera direction instead of position.
related: https://github.com/webaverse-studios/CharacterCreator/issues/214
issue:
https://user-images.githubusercontent.com/60634884/217936649-4291b71f-721e-4f34-8f90-c6e5b0dbe086.mp4
result:
https://user-images.githubusercontent.com/60634884/217936684-62ba97ac-f7c9-4c23-92de-1c64aaf71027.mp4
The latest updates on your projects. Learn more about Vercel for Git ↗︎
now we are using camera position to check if the avatar rotation is ≥ ±90º, but it does not work with some edge cases. In this PR, I use camera direction instead of position.
related: https://github.com/webaverse-studios/CharacterCreator/issues/214
issue:
https://user-images.githubusercontent.com/60634884/217936649-4291b71f-721e-4f34-8f90-c6e5b0dbe086.mp4
result:
https://user-images.githubusercontent.com/60634884/217936684-62ba97ac-f7c9-4c23-92de-1c64aaf71027.mp4