#Crouch Height Collision Detection - Help

1 messages · Page 1 of 1 (latest)

hushed sparrow
#

I can't figure out how to get a reliable crouch height/ceiling detection. I've looked through a ton of videos, forums, unity documentation, I am unsure if there is an issue with my crouch code, or specifically an issue with the code that lets it stand up and expand upwards instead of the default downwards.

https://paste.ofcode.org/vKprtKALP2udrf5xVEBe7P

I've attached my PlayerMotor script and the unity editor for my player. (player transform is 2, 2 ,2)

Help would be greatly appreciated! I've been stuck on this for multiple days