[gd_scene load_steps=6 format=2] [ext_resource path="res://component/entity/ball/Ball.gd" type="Script" id=1] [ext_resource path="res://component/entity/ball/ball.png" type="Texture" id=2] [ext_resource path="res://effect/particle/trail/Trail.tscn" type="PackedScene" id=3] [sub_resource type="PhysicsMaterial" id=1] friction = 0.0 bounce = 1.0 [sub_resource type="CircleShape2D" id=2] radius = 5.0 [node name="Ball" type="RigidBody2D" groups=[ "ball", ]] collision_mask = 14 mode = 2 physics_material_override = SubResource( 1 ) gravity_scale = 0.0 continuous_cd = 2 contacts_reported = 2 contact_monitor = true linear_velocity = Vector2( 100, 100 ) linear_damp = 0.0 script = ExtResource( 1 ) interrupt_color = Color( 0.705882, 0.705882, 0.705882, 1 ) [node name="Circle" type="CollisionShape2D" parent="."] shape = SubResource( 2 ) [node name="Sprite" type="Sprite" parent="."] texture = ExtResource( 2 ) [node name="Trail" parent="." instance=ExtResource( 3 )] [connection signal="body_entered" from="." to="." method="_on_Ball_body_entered"] [connection signal="body_exited" from="." to="." method="_on_Ball_body_exited"]