yugodot/scripts/CrateMover2.cs
2024-10-15 01:25:22 +02:00

19 lines
313 B
C#

using Godot;
using System;
public class CrateMover2 : Spatial
{
public override void _Ready()
{
}
public override void _Process(float delta)
{
if (Input.IsKeyPressed((int)KeyList.A))
{
Transform = Transform.Translated(Vector3.Forward * delta);
}
}
}