webaverse / app

Web metaverse client
https://app.webaverse.com
MIT License
343 stars 207 forks source link

use avatar facing direction to set player quaternion #3637

Closed tcm390 closed 1 year ago

tcm390 commented 2 years ago

In character-physics.js, we use sitBone to set the player's quaternion. But I found that diorama and sonic boom would be broken if we sit on the dragon. I'm wondering if we could just use avatar facing direction to set player quaternion?

Issue: (hovercraft does not have problem but dragon would break the diorama and sonic boom)

https://user-images.githubusercontent.com/60634884/184726781-831d11ae-797a-415f-9185-d889c8b3f41a.mp4

Result:

https://user-images.githubusercontent.com/60634884/184726814-1566fef0-b9f6-4c36-8875-b095e664cbf3.mp4