yugodot/scripts/CrateMover2.cs

19 lines
313 B
C#
Raw Normal View History

2024-10-14 23:25:22 +00:00
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);
}
}
}