This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Godot; | |
// Use this class as a base for a character controller in Godot to enable stair-stepping | |
// | |
// In your character code, simply call StairStepUp() just before MoveAndSlide(), | |
// and then StairStepDown() afterward. | |
// | |
// Make sure your character collider margins are set as low as possible. | |
// Inspired by and partially based on https://github.com/JheKWall/Godot-Stair-Step-Demo | |
public partial class StairsCharacter : CharacterBody3D |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Configuration; | |
using System.Linq; | |
using System.Text; | |
using System.IO; | |
using Microsoft.CSharp; | |
using System.CodeDom.Compiler; | |
namespace ClassLibrary1 |