add eart
All checks were successful
CI / build (pull_request) Successful in 2m48s

This commit is contained in:
ultrablob 2025-02-05 21:15:12 -05:00
parent 8cb01d7918
commit 4ea08b1c5f
29 changed files with 697 additions and 17 deletions

View file

@ -9,8 +9,10 @@ func _ready():
func _physics_process(delta):
#global_rotation = $"..".linear_velocity.angle()
$ShapeCast2D.target_position = to_local($"..".linear_velocity * 1000)
points[1] = to_local($ShapeCast2D.get_collision_point(0))
if $ShapeCast2D.get_collider(0) != null and ["Player", "Shield" if target_shield else "None"].has($ShapeCast2D.get_collider(0).name):
points[1] = to_local($ShapeCast2D.get_collision_point(0))
visible = true
else:
visible = false