- Home /
Let Character Controller walk up actual stairs/blocks
Hi everyone!
I am currently working on a voxel engine (like minecraft with blocks) and I dont want the Player to jump whenever he wants to go up a block. So basicly I want my Player to automaticly move up one block (1 Unity unit/meter) when he walks against it. I am using a standert Character Controller for the movement/collision and I've already tried to set the Step Offset to something above 1.0 but then my Player is sliding around the Corner of each block going up and down when I try to walk up a block. My question is: How can I force my character Controller to walk up "stairs" (blocks) which steps are one Uniy unit/meter away from each other (in height of course) ?
I hope you understand my question (I know my english is not the best :P).
Don't come with the "Create a slope collider" answer. This won't work in a Voxel engine!
Thank you!
Wizz
Check the Sample Assets beta asset store package. It's FPS controller is rigidbody based, but has the ability to walk up stairs.
I can't find any options to set something like a step size.
Your answer
Follow this Question
Related Questions
change animator parameters with the input system 1 Answer
Avoiding artifacts when creating blocks next to each other 0 Answers
my character is animating perfectly but character is not moving when walk . 1 Answer
Why can't I jump and run at the same time? c# 1 Answer
How to make a rigid obj walk. 0 Answers