updated to godot 4 beta 7 wich might be a mistake

This commit is contained in:
2022-12-06 23:12:59 +01:00
parent 7c62ae2d2e
commit b96bbbb1b5
4 changed files with 10 additions and 2 deletions

0
export_presets.cfg Normal file
View File

View File

@@ -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<Marker3D>("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);
}

View File

@@ -1,4 +1,4 @@
<Project Sdk="Godot.NET.Sdk/4.0.0-beta.6">
<Project Sdk="Godot.NET.Sdk/4.0.0-beta.7">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<EnableDynamicLoading>true</EnableDynamicLoading>

View File

@@ -0,0 +1,7 @@
<Project Sdk="Godot.NET.Sdk/4.0.0-beta.6">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<EnableDynamicLoading>true</EnableDynamicLoading>
<RootNamespace>test3dproject</RootNamespace>
</PropertyGroup>
</Project>