This commit is contained in:
parent
8cb01d7918
commit
4ea08b1c5f
29 changed files with 697 additions and 17 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue