Godot Version
4.3
Question
` Heyo! I tried to make enemies shoot when they see the character by using raycast2D. Everything in code looks fine, but instead of going to player position, ray stops half way there. This is the code i used:
ā$aimray.target_position = to_local(player.position)ā
Does anybody have any idea why that could be? `