Character object is unstable and I can't figure out why or how to fix it
hello!
I'm making a unity 3d game with the main camera mounted on the player character object, who moves through the space, which is a sort of lumpy cave floor. I've created a floor collider that keeps it from tripping over little bumps i can't see, because I thought that was the issue, but it's clearly not.
What happens is this: As you're walking, sometimes, the character starts to wobble a bit, and then a few moments later it starts spinning out of control. Exiting to the scene camera shows it's tumbling across the scene rapidly. The thing is, I have the character object's x and y rotation frozen, so it shouldn't be able to do that at all. There also doesn't seem to be an obvious trigger for it, though it does always happen when you save or load without fail (which involves taking the object's position and then setting it to something else). It happens other times too.
I'm not even necessarily looking for a solution from you all--though one would be appreciated--but if anyone has any idea what could even be causing this, I'd be grateful...!
An update on this: The character object is also slowly drifting to the right for no discernible reason. When no key is pressed its movement speed is set to zero, so it should be sitting still, but it moves about .01 unit per update cycle. It isn't much, but it's noticable after some time passes, and I think it might have something to do with the character spinning out.
I really need to get this problem figured out asap, but I keep getting nowhere with it...