[SOLVED] My crouch script, wont go low enough!
I made this script following several tutorials, it works great but no matter how low i set the value it don't seem to get low enough. i am not sure how to make it super low on a 0.5f is what i have it at.
I know its looks bad, but i'm trying my best to get it done myself, but i don't know float values and -1 don't even work. How can I make it get super low, or the best way to go about this. Thanks in advance!
public float hide_Height = 0.1f;
Even 0.001F is still to high up. But if i use an alternative script it gets super low like i need it, but looks bad because it smashes the player like a pancake. So I don't want to use this one here:
I'm not sure, but I think CharacterController.height does not modify the position of the character nor the camera, it just modifies the height of the CapsuleCollider of the CharacterController. You need to modify CharacterController.transform.position.
Ok, when you said "Camera" that I started thinking about how I had an issue a while back, the camera going through the counter. I raised it up 2 feet! And I forgot to put it back after I fixed it with the sorting layers lol.
So after i put it back at default position, it worked. The player gets low enough to go under the table no issue. So there was no issue just me being dumb, my bad and thanks.
Your answer

Follow this Question
Related Questions
Endless Runner platform Heigh generator not working. 0 Answers
C# MultipleChoice 0 Answers
help with random quiz questions 0 Answers
c# 2d How to compare two GameObjects ? 1 Answer
How did the scripts change? 0 Answers