create Gathering component for picking up honeydew

This commit is contained in:
2024-10-06 20:00:14 +10:00
parent 78cb85eb92
commit 0e1dd1b2f2
5 changed files with 66 additions and 2 deletions

View File

@@ -7,6 +7,9 @@ var mouse_pos: Vector2 = Vector2.ZERO
func _physics_process(_delta: float) -> void:
if SelectionManager.selecting:
return
var space_state := get_world_3d().direct_space_state
var from := camera.project_ray_origin(mouse_pos)
var to := from + camera.project_ray_normal(mouse_pos) * (camera.far - 1)