fix: bug with player Basis getting weird when stopping

+ some tweaks to the camera
This commit is contained in:
Sara 2025-05-28 00:33:43 +02:00
parent 39dfc96222
commit 4f525b2b16
2 changed files with 18 additions and 11 deletions

View file

@ -9,7 +9,7 @@ height = 2.15448
[sub_resource type="GDScript" id="GDScript_eqqp1"]
script/source = "extends Camera3D
@export var dist : float = 2.0
@export var pivot_height : float = 3.0
@export var pivot_height : float = 1.0
@export var look_target_height : float = 1.0
func _ready():
@ -23,8 +23,7 @@ func _process(_delta):
[node name="Player" type="PlayerBody"]
wall_min_slide_angle = 0.785398
floor_max_angle = 0.968658
floor_snap_length = 1.5
floor_max_angle = 0.460767
[node name="PlayerStateMachine" type="PlayerStateMachine" parent="."]
@ -36,8 +35,8 @@ shape = SubResource("CapsuleShape3D_bxedw")
transform = Transform3D(-1, -6.18173e-08, -6.18173e-08, -6.71313e-08, 0.99594, 0.0900246, 5.60012e-08, 0.0900246, -0.99594, 3.76484e-07, 1.43409, -2.96511)
fov = 100.0
script = SubResource("GDScript_eqqp1")
dist = 1.5
pivot_height = 2.5
dist = 1.75
pivot_height = 2.0
look_target_height = 1.5
[node name="character" parent="." instance=ExtResource("1_eqqp1")]