IssueRaiser

Add automatic smooth stairs step-up and step-down for CharacterBody using `move_and_slide()`

<!-- Please fill in *all* the questions below and don't remove any of them. Proposals not following the template below will be closed immediately. --> ### Describe the project you are working on Character controller for Godot ### Describe the problem or limitation you are having in your project For any type of movement that requires a kinematic rigidbody, a stair test should be built-in to the move_and_slide function, allowing the user to: - Specify a step height that determines if a step is low enough to smoothly climb or is a wall that cannot be climbed. - Up and down stairs without losing contact, similar to how move_and_slide_with_snap works. ### Describe the feature / enhancement and how it helps to overcome the problem or limitation Step up distance: Any stable surface below this height will be walkable by the character. ![image](https://user-images.githubusercontent.com/16231628/119050408-bb749480-b9b9-11eb-8745-cb5d95e2579a.png) Step down distance: When losing contact with the ground, if the distance between the character and the ground is less or equal to this value, then the character will be automatically grounded (sticking to the ground). If there is no ground at all, then the character will be not grounded. ![image](https://user-images.githubusercontent.com/16231628/119050420-c0394880-b9b9-11eb-867a-a4b23804184f.png) ![image](https://user-images.githubusercontent.com/16231628/119051106-a64c3580-b9ba-11eb-8e2a-3073a3457c34.png) ### Describe how your prop

Posted by elvisish on May 20, 2021, 9:32 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.3,000 issues0 comments

reliability (Other)

Add automatic smooth stairs step-up and step-down for CharacterBody using `move_and_slide()`

elvisishMay 20, 2021, 9:32 PM

<!-- Please fill in *all* the questions below and don't remove any of them. Proposals not following the template below will be closed immediately. --> ### Describe the project you are working on Character controller for Godot ### Describe the problem or limitation you are having in your project For any type of movement that requires a kinematic rigidbody, a stair test should be built-in to the move_and_slide function, allowing the user to: - Specify a step height that determines if a step is low enough to smoothly climb or is a wall that cannot be climbed. - Up and down stairs without losing contact, similar to how move_and_slide_with_snap works. ### Describe the feature / enhancement and how it helps to overcome the problem or limitation Step up distance: Any stable surface below this height will be walkable by the character. ![image](https://user-images.githubusercontent.com/16231628/119050408-bb749480-b9b9-11eb-8745-cb5d95e2579a.png) Step down distance: When losing contact with the ground, if the distance between the character and the ground is less or equal to this value, then the character will be automatically grounded (sticking to the ground). If there is no ground at all, then the character will be not grounded. ![image](https://user-images.githubusercontent.com/16231628/119050420-c0394880-b9b9-11eb-867a-a4b23804184f.png) ![image](https://user-images.githubusercontent.com/16231628/119051106-a64c3580-b9ba-11eb-8e2a-3073a3457c34.png) ### Describe how your prop

Comments (0)

No comments yet. Start the discussion.

Comment on this issue