From 10f00f11767427941eec18dbd8bfe5334384a3af Mon Sep 17 00:00:00 2001 From: fearn-e Date: Mon, 25 Sep 2023 02:24:08 +0100 Subject: [PATCH] Fix csharp bug in tutorial code --- tutorials/physics/using_character_body_2d.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/physics/using_character_body_2d.rst b/tutorials/physics/using_character_body_2d.rst index c9ad7dd62..df03ca56a 100644 --- a/tutorials/physics/using_character_body_2d.rst +++ b/tutorials/physics/using_character_body_2d.rst @@ -511,7 +511,7 @@ Here's the code for the player body: velocity.Y = _jumpSpeed; // Get the input direction. - Vector2 direction = Input.GetAxis("ui_left", "ui_right"); + float direction = Input.GetAxis("ui_left", "ui_right"); velocity.X = direction * _speed; Velocity = velocity;