?????????

This commit is contained in:
2023-09-06 20:32:16 -07:00
parent 5405c33192
commit 8a923f04c4
24 changed files with 835 additions and 2420 deletions

View File

@@ -51,7 +51,6 @@ public partial class Character : CharacterBody3D
var inputDir = Input.GetVector(OwnerPlayer.PlayerInput.Left(), OwnerPlayer.PlayerInput.Right(), OwnerPlayer.PlayerInput.Up(), OwnerPlayer.PlayerInput.Down());
var direction = (Transform.Basis * new Vector3(inputDir.X, 0, inputDir.Y)).Normalized();
direction = new Vector3(direction.X, 0, direction.Z);
if (direction != Vector3.Zero)
{
velocity.X = direction.X * _speed;