mirror of
https://github.com/Relintai/broken_seals.git
synced 2025-01-08 01:49:35 +01:00
Increase raycast height more, just in case.
This commit is contained in:
parent
3d7c70041f
commit
a3f4ddd852
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user