Spacetime-Meta / spacetime-sdk

The spacetime-sdk is a turnkey virtual environment package for building in the Spacetime Metaverse
https://www.spacetimemeta.io/metaverse/spawn-planet
MIT License
11 stars 2 forks source link

Character upside down after falling #85

Closed codeeMadness closed 2 years ago

codeeMadness commented 2 years ago

After our Character falling, the character is up-side down.

https://user-images.githubusercontent.com/102911684/169102816-ac0d35a0-432f-487d-9b39-4d9e900c6f17.mp4

codeeMadness commented 2 years ago

Hi @Liquid-Blocks ,

Could you help to advise me how to fix this issue?

Regards,

Liquid-Blocks commented 2 years ago

Hi @codeeMadness,

After some experimenting, I found the issue seems to be in the AvatarController.updatefacingDirection, This because removing the following lines prevents the error: image

Issue probably comes from a negative value appearing when the character falls under Y = 0, since lowering the terrain in spawn planet makes the avatar upside down by default. image

Liquid-Blocks commented 2 years ago

This problem was solved in this commit.