?????????
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user