
A
Publisher
andicraft
Stairs Character
Tools
CharacterBody3D
A simple to use class that enables your CharacterBody3D to handle stairs properly.
This plugin has been mirrored from the Godot Asset Library.
The plugin author is in no way affiliated with Gadget.
If you are the author of this plugin and would like this mirror removed, please contact support@gadgetgodot.com.
Stairs Character
A simple to use class that enables your CharacterBody3D to handle stairs properly.
Mainly tested with the Jolt physics engine and cylinder colliders, not guaranteed to work well with anything else - but try it!
Usage instructions:
- Make your character controller extend
StairsCharacter
instead ofCharacterBody3D
. - Ensure your character's collider is named 'Collider'.
- Every frame, set
desired_velocity
to the desired direction of movement. - Call
move_and_stair_step()
instead of callingmove_and_slide()
. - Done!
Important:
Ensure your character collider's margin value is set low - at most 0.01. Anything higher might cause snags. If you find that you're still snagging on ledges, lower it some more.