From a3f4ddd852ab89da62cda60f4dfba53d4f038735 Mon Sep 17 00:00:00 2001 From: Relintai Date: Tue, 8 Mar 2022 18:19:14 +0100 Subject: [PATCH] Increase raycast height more, just in case. --- game/player/Body.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/player/Body.gd b/game/player/Body.gd index a26924a0..835897df 100644 --- a/game/player/Body.gd +++ b/game/player/Body.gd @@ -218,7 +218,7 @@ func _physics_process(delta : float) -> void: var space : PhysicsDirectSpaceState = get_world().direct_space_state - var res : Dictionary = space.intersect_ray(transform.origin + Vector3(0, 300, 0), transform.origin + Vector3(0, -100, 0), [ self ]) + var res : Dictionary = space.intersect_ray(transform.origin + Vector3(0, 1000, 0), transform.origin + Vector3(0, -100, 0), [ self ]) if not res.empty(): var pos : Vector3 = res["position"]