Did stuff

This commit is contained in:
2025-04-02 15:46:11 +01:00
parent 1718bd7586
commit 4f47cd883a
4 changed files with 31 additions and 16 deletions

View File

@@ -56,6 +56,6 @@ public partial class PlayerMovement : MonoBehaviour
ApplyDrag();
// Displays the speed of the player to the screen
m_SpeedDisplay.text = "Speed: " + m_Body.velocity.magnitude.ToString("0.00");
m_SpeedDisplay.text = "Speed: " + new Vector3(m_Body.velocity.x, 0.0f, m_Body.velocity.z).magnitude.ToString("0.00") + " m/s";
}
}