17 lines
391 B
C#
17 lines
391 B
C#
using Godot;
|
|
|
|
namespace Movementtests.interfaces;
|
|
|
|
public record MovementInputs(
|
|
Vector3 Velocity = default,
|
|
Vector3 TargetLocation = default,
|
|
bool IsOnFloor = false,
|
|
bool IsStunned = false,
|
|
Vector3 Gravity = default,
|
|
double Delta = 0);
|
|
|
|
public interface IMoveable
|
|
{
|
|
[Export] RMovement RMovement { get; set; }
|
|
Vector3 ComputeVelocity(MovementInputs inputs);
|
|
} |