Problem with stairs and legs

we created stairs in blender and imported them into roblox studio. now there are errors like, leg disappears in the step, or the avatar hovers over the step (see picture). What are we doing wrong?
image

1 Like

Go to your Studio Settings and the Physics section.
Click the “Show Decomposition Geometry” checkbox. I know you used to have to change a Property of the MeshPart to get it to change when I used it a long time ago.
It shows you what the actual shape of the MeshPart hitbox is.

It’s a bit of a pain, so I use the Mesh Optimization Tools - Roblox Plugin by CloneTrooper1019. If you click on the plugin it’ll show all the MeshParts and Unions as a series of shapes that indicate what the physical hitbox of those items are instead of the visual representation in the workspace.

1 Like

If the mesh decomposition isn’t the source of the problem, I know another common cause for the character to clip through steps:

It’s because of how the engine handles elevation changes: when you go up a step, the character clips through the step as opposed to snapping up on the step.
Someone could explain this better than me but that’s basically what the game engine is intentionally designed to do.

1 Like

And as @VGVC2 stated, characters seem to have some sort of raycasting system set up to determine what the avatar is standing on. As you can see from your picture it looks like the center of the avatar is at the back edge of the lower step, so that’s what the calculation is based on.
Just a quick question as well. Those steps seem to be very basic rectangular steps so why are you making them in Blender?

1 Like