Character Body 3D getting stuck on stairs

Godot Version

v4.3.stable.arch_linux

Question

Im having this issue in godot 3d where when i imported a blender file into godot with stairs the player controller always get stucks where you can’t move at all on the stairs, and i have no idea where to fix it, I made a stairs in godot with a csg stair maker script i found and it works perfectly fine, when i imported the blender file in i made sure to use the -col sufix so it will use a static body with a concave polygon collison shape. I don’t know if it just my model or a bug in the engine.
I forgot to mention that the player will just complety freeze, when touching one of the steps, no jumping, no moving, just forzen

Its probably not the stairs but your player. In order to do stairs correctly for the player you either need to float the player using a ray cast to determine the height of the float, or simplify the collision shape of the stairs to make a smooth ramp.

A better video

1 Like

the player can’t even jump up the stairs or down, and i do have the code to make the player walk up the stairs working, so that is not the issue.

I havent looked at the blender collision translation but you want a convex shape, not concave.

-convcol

this works but i am curios if i should change all my colliders to -convcol

Only use -col if the collision mesh has a bowl shape on any part. But performant collision shapes should just use convex anyways. Even if you have a bowl shape you can always simplify the collision shape into a few convex boxes. (at the loss of some surface accuracy.)

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.