Hello everyone.
I have this strange bug:
Sometimes, when a player is playing the game, the main character's sprite rotate just a little bit on Z axis.
Then, after a while, it rotate a little bit more. Again and again. But I really don't know what is causing this rotation.
This is what's happening: https://imgur.com/a/YJDcPLN
I actually cannot give a lot of informations about this bug because i don't really have a clue of what can cause it.
I just found a checkbox, on the settings saying: Character rotations affected by "Vertical movement factor". So I unchecked it. Is that the solution? or maybe not?
Here are my settings:
https://imgur.com/a/nyNluFl
Here it is the character's prefab:
https://imgur.com/a/3jbkuW6
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
In what AC version?
It may be a collision issue with your rigidbody. You could try locking its Rotation constraint, but since you're using Point And Click for movement it's likely that it's not even necessary.
Try removing the Rigidbody component and see if that helps.
AC Version: 1.71.7
Unity Version: 2019.3.12
I know that they are not the most updated versions but I don't think is something related with the version.
Anyway. Now I freezed the rotation in the rigidbody. I hope it won't happen again.
If it does, i will write again in this post.
Thank you a lot