Increase raycast height more, just in case.

This commit is contained in:
Relintai 2022-03-08 18:19:14 +01:00
parent 3d7c70041f
commit a3f4ddd852

View File

@ -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"]