From b96bbbb1b55e9b1957a90eb4ef34224de326e44b Mon Sep 17 00:00:00 2001 From: vaporvee Date: Tue, 6 Dec 2022 23:12:59 +0100 Subject: [PATCH] updated to godot 4 beta 7 wich might be a mistake --- export_presets.cfg | 0 src/player.cs | 3 ++- test 3d project.csproj | 2 +- test 3d project.csproj.old | 7 +++++++ 4 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 export_presets.cfg create mode 100644 test 3d project.csproj.old diff --git a/export_presets.cfg b/export_presets.cfg new file mode 100644 index 0000000..e69de29 diff --git a/src/player.cs b/src/player.cs index c89784e..2cd384a 100644 --- a/src/player.cs +++ b/src/player.cs @@ -16,6 +16,7 @@ public partial class player : CharacterBody3D public Vector3 playerResetPosition; //TODO: Add camera max rotation on ground (Preventing turning camera to upside down) //TODO: just rotate model not just everything + //NOTICE: Since Beta 7 of Godot 4 the turning isn't smooth anymore public override void _Ready() { cameraCenter = GetNode("camera_center"); @@ -51,7 +52,7 @@ public partial class player : CharacterBody3D //checks for movement and adjusts the character direction with camera roatation playerResetPosition = Rotation; camPosition = cameraCenter.Rotation; - playerResetPosition.y = camPosition.y * -1f; + playerResetPosition.y = camPosition.y * -1; Rotation -= playerResetPosition; cameraCenter.Rotation = new Vector3(camPosition.x, 0, 0); } diff --git a/test 3d project.csproj b/test 3d project.csproj index 9e1f738..b5c87b9 100644 --- a/test 3d project.csproj +++ b/test 3d project.csproj @@ -1,4 +1,4 @@ - + net6.0 true diff --git a/test 3d project.csproj.old b/test 3d project.csproj.old new file mode 100644 index 0000000..9e1f738 --- /dev/null +++ b/test 3d project.csproj.old @@ -0,0 +1,7 @@ + + + net6.0 + true + test3dproject + + \ No newline at end of file