diff --git a/Commentary.tscn b/Commentary.tscn index 34e8d48..4cbd859 100644 --- a/Commentary.tscn +++ b/Commentary.tscn @@ -33,7 +33,7 @@ size = Vector3(1, 1.5, 1) script = ExtResource("1_omu2m") [node name="Koob" type="CSGMesh3D" parent="."] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.21614, 0) +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.08946, 0) mesh = SubResource("BoxMesh_sbsxh") material = SubResource("StandardMaterial3D_8bjqg") diff --git a/Player.gd b/Player.gd index 1c0b4b7..0e1efb0 100644 --- a/Player.gd +++ b/Player.gd @@ -81,7 +81,7 @@ func _physics_process(delta): vel = _apply_friction(vel, delta) vel = _apply_accel(vel, wishdir, wishspeed, delta) else: - vel = _apply_air_accel(vel, wishvel, delta) + vel = _apply_air_accel(vel, wishvel, wishspeed, delta) if not _noclip: vel.y += g * delta @@ -125,7 +125,7 @@ func _apply_accel(vel: Vector3, wishdir: Vector3, wishspeed: float, delta: float return vel + accelspeed * wishdir -func _apply_air_accel(vel: Vector3, wishvel: Vector3, delta: float): +func _apply_air_accel(vel: Vector3, wishvel: Vector3, wishspeed: float, delta: float): var wishveloc = wishvel.normalized() var wishspd = wishvel.length() @@ -137,7 +137,7 @@ func _apply_air_accel(vel: Vector3, wishvel: Vector3, delta: float): if addspeed <= 0: return vel - var accelspeed = AIR_ACCEL * wishspd * delta + var accelspeed = AIR_ACCEL * wishspeed * delta if accelspeed > addspeed: accelspeed = addspeed diff --git a/Player.tscn b/Player.tscn index 4a46995..ceac729 100644 --- a/Player.tscn +++ b/Player.tscn @@ -27,6 +27,7 @@ radius = 0.1 [node name="Flashlight" type="SpotLight3D" parent="."] transform = Transform3D(1, 0, 0, 0, 0.990246, 0.139329, 0, -0.139329, 0.990246, 0, 1.5, -0.4) +visible = false light_color = Color(1, 1, 0.768627, 1) shadow_enabled = true distance_fade_enabled = true