godot-plateformer/addons/reedcomponent/grap_hook/garpping_hook_v2.tscn

30 lines
919 B
Plaintext

[gd_scene load_steps=3 format=3 uid="uid://ddwoxlqluxiq5"]
[ext_resource type="Script" uid="uid://bvxgviq7l64ck" path="res://addons/reedcomponent/grap_hook/garpping_hook_v_2.gd" id="1_jrg4x"]
[sub_resource type="CircleShape2D" id="CircleShape2D_jrg4x"]
radius = 5.0990195
[node name="GarppingHookV2" type="Node2D"]
script = ExtResource("1_jrg4x")
[node name="Line2D" type="Line2D" parent="."]
unique_name_in_owner = true
points = PackedVector2Array(0, 0, 80, 0)
width = 8.0
[node name="RayCast2D" type="RayCast2D" parent="."]
unique_name_in_owner = true
target_position = Vector2(80, 0)
collision_mask = 20
collide_with_areas = true
[node name="TipDetector" type="Area2D" parent="."]
position = Vector2(80, 0)
collision_layer = 0
collision_mask = 32
[node name="CollisionShape2D" type="CollisionShape2D" parent="TipDetector"]
shape = SubResource("CircleShape2D_jrg4x")
debug_color = Color(0, 0.6, 0.69803923, 0)