Player character rotated bug

I'm building off of Photon Tutorial 102 by replacing the player character with a first-person capsule character, but for some reason the player character, including the camera, is rotating 90 degrees to face directly into the ground. When I try to rotate the camera (which rotates the object), it jerks back to face into the ground. Does anyone have any broad idea what could be causing this? Additionally, there's some sort of mesh (see the scene view) which isn't in alignment with the capsule itself-- what is this? Thanks.


Best Answer

  • MuKapp
    MuKapp
    Answer ✓

    I'm gonna answer my own question again (after 20+ hours of agony, all it takes is 30 minutes after I posted it on the forums...)... anyways, it was because of some sloppy code I copy-and-pasted from the single-player FPS controller. I didn't understand it, so kinda left it alone and never thought to check it. Let this be a lesson to my fellow Unity newbs.

Answers

  • MuKapp
    MuKapp
    Answer ✓

    I'm gonna answer my own question again (after 20+ hours of agony, all it takes is 30 minutes after I posted it on the forums...)... anyways, it was because of some sloppy code I copy-and-pasted from the single-player FPS controller. I didn't understand it, so kinda left it alone and never thought to check it. Let this be a lesson to my fellow Unity newbs.