So I've tried using the input_event of the static bodies themselves to gather input, but that's not working. However, code in _physics_process is returning the right location. I'm curious how I would handle mouse button input within _physics_process?
func _physics_process(delta) -> void:
var space_state = get_world_3d().direct_space_state
var mousepos = get_viewport().get_mouse_position()
var origin = camera.project_ray_origin(mousepos)
var end = origin + camera.project_ray_normal(mousepos) * RAY_LENGTH
var query = PhysicsRayQueryParameters3D.create(origin, end)
var result = space_state.intersect_ray(query)
print(result)