Changing the players collision box prevents them from using stairs in the Lobby. #413
-
First off, sorry for the dumb question...but has anyone else had to deal with this? I opened the player scene and changed the player model to a capsule when it was a rectangle, but now I can't move up stairs without jumping. Is there an easy way to fix this, or am I ultraomegasuper stupid? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello, and no worries: Not a dumb question at all and you're not stupid. This is something that has come up before. The basic answer is that due to how the stair step-detection works, your Player Controller needs to have a collision shape that has a "floor edge", so either a rectangle or cylinder. If you use a capsule collider, the step-detection can't reliably check for a step height in relation to the floor point. If you must use a capsule collider for your player character, you might need to adjust the colliders on your level geometry to be read as a ramp. |
Beta Was this translation helpful? Give feedback.
Hello, and no worries: Not a dumb question at all and you're not stupid. This is something that has come up before.
The basic answer is that due to how the stair step-detection works, your Player Controller needs to have a collision shape that has a "floor edge", so either a rectangle or cylinder.
If you use a capsule collider, the step-detection can't reliably check for a step height in relation to the floor point.
If you must use a capsule collider for your player character, you might need to adjust the colliders on your level geometry to be read as a ramp.
I also noticed you mentioned "player model" - your player mesh can be anything you want - it doesn't have to match the collision s…