I'm experiencing a very strange bug with the character height. As soon as the game starts, the character is at certain height, say 100%.
But as soon as he does his first crouch, his standing height is now about 60% of the original.
This is the code that I use to create the character:
Is the character just saying in the crouched state? Top stop crouching, the stance must be explicitly changed to standing again.
Is the character body itself not returning to the correct shape, or is it just the camera in the wrong spot?
Additionally, while this doesn't necessarily explain the height issue, there are some properties there being set after construction which are not designed to be set after construction. The character wasn't designed for taking into account post-construction changes. That's why the CrouchingHeight and StandingHeight setters are private by default. The body's radius should also not be set after construction. Instead of configuring these after the fact, modify the first initialization (for example, in the constructors), or ensure that any post-modification gets understood by the character properly. (I might make this easier in the future.)