Update 6: Fixing Player Movement Issues


This week my game suddenly came across a few bugs in my player movement. This worried me because I didn't know how to fix the issue. The issue was that when I moved the mouse, it would spin the camera a long way away rather than just on the spot. It took me around 4 or 5 hours of troubleshooting and reading forums to finally fix the issue. 

The reason for the camera doing this is because my main camera is a child of my First Person Player parent game object, and at some point I accidentally moved the main camera's position (child) without realizing. What I should of done was move the parent object only, as that would move the child object with it, rather than just moving the child gameobject on it's own. 

So therefore, this week I spent most of the time on doing unity trying to sort this issue out - eventually I did sort it out but did leave me scratching my head wondering how to fix it. or even what I did to cause the issue. This is good because next time I can  fix the issue pretty easily because I know what I would need to do to fix it. 

As usual I published the changes to sourcetree and pushed them to Bitbucket. 

Leave a comment

Log in with itch.io to leave a comment.