23 lines
621 B
C#
23 lines
621 B
C#
using Godot;
|
|
|
|
namespace Playground.Common.CharacterMovement;
|
|
|
|
[GlobalClass]
|
|
public partial class CharacterMovementMode : Resource
|
|
{
|
|
[Export] public string Name;
|
|
[Export] public float speed { get; set; } = 5f;
|
|
[Export] public bool ignoreUpDirection { get; set; } = true;
|
|
[Export] public float acceleration { get; set; } = 1f;
|
|
[Export] public float deceleration { get; set; } = 1f;
|
|
[Export] public float gravityScale { get; set; } = 1f;
|
|
[Export] public float rotationRate { get; set; } = 360f;
|
|
|
|
}
|
|
|
|
/*
|
|
Max Step Height
|
|
|
|
Walkable Floor Angle
|
|
Ignore Base Rotation (rotate towards movement)
|
|
*/ |