webaverse-studios / CharacterCreator

3D Avatar Creator for Everyone
https://moemate.io
MIT License
84 stars 47 forks source link

Don't look at the mouse when avatar rotation ≥ ±90º #281

Closed tcm390 closed 1 year ago

tcm390 commented 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

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
character-creator ✅ Ready (Inspect) Visit Preview Feb 9, 2023 at 8:53PM (UTC)