Edit of asset "Stairs Character C#" Accepted

Old/Current New/Edit
Title Stairs Character C# Stairs Character C#
Description # 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:

1. Make your character controller extend `StairsCharacter` instead of `CharacterBody3D`.
2. Ensure your character's collider is named 'Collider'.
3. Every frame, set `DesiredVelocity` to the desired direction of movement.
4. Call `MoveAndStairStep()` instead of calling `MoveAndSlide()`.
5. 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.
A simple class you can extend to make your character support walking up stairs and other small steps.

1. Make your character controller extend StairsCharacter instead of CharacterBody3D.
2. Call HandleStairs() before calling MoveAndSlide().
3. Done!

If your controller uses multiple colliders, make sure the one closest to the ground is the first in the list. The C# version currently assumes the collider's shape is a CapsuleShape3D, but that should be easy to change in the code if you need it to use a different shape.
Category Scripts Scripts
License MIT MIT
Repository Provider GitHub GitHub
Repository Url https://github.com/Andicraft/stairs-character-csharp https://github.com/Andicraft/stairs-character-csharp
Issues Url https://github.com/Andicraft/stairs-character-csharp/issues https://github.com/Andicraft/stairs-character-csharp/issues
Godot version Godot 4.0 Godot 4.1
Version String 1.1.1 1.0
Download Commit 205775ce535f79fc307ee902a8196d3f7f4066dd f551fe97445b4039f03fca6ddbb35a32ffc9ddeb
Download Url (Computed) https://github.com/Andicraft/stairs-character-csharp/archive/205775ce535f79fc307ee902a8196d3f7f4066dd.zip https://github.com/Andicraft/stairs-character-csharp/archive/f551fe97445b4039f03fca6ddbb35a32ffc9ddeb.zip
Icon Url https://raw.githubusercontent.com/Andicraft/stairs-character-csharp/main/icon.png
https://raw.githubusercontent.com/Andicraft/stairs-character-csharp/main/icon.png