Files
pong/scenes/playground/ball/Ball.tscn
T
2024-03-15 15:55:19 +01:00

34 lines
1.0 KiB
Plaintext

[gd_scene load_steps=5 format=3 uid="uid://dmsd30hc2ob1w"]
[ext_resource type="Script" path="res://scenes/playground/ball/Ball.gd" id="1_vsr7q"]
[ext_resource type="Texture2D" uid="uid://8gw5knpb4bx6" path="res://assets/ball.png" id="2_efxb4"]
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_h7mi1"]
friction = 0.0
[sub_resource type="CircleShape2D" id="CircleShape2D_8ps5q"]
radius = 20.0
[node name="Ball" type="RigidBody2D"]
mass = 0.01
physics_material_override = SubResource("PhysicsMaterial_h7mi1")
gravity_scale = 1.66533e-16
can_sleep = false
lock_rotation = true
freeze_mode = 1
max_contacts_reported = 10
contact_monitor = true
linear_damp_mode = 1
script = ExtResource("1_vsr7q")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(20, 20)
shape = SubResource("CircleShape2D_8ps5q")
[node name="TextureRect" type="TextureRect" parent="."]
offset_right = 40.0
offset_bottom = 40.0
texture = ExtResource("2_efxb4")
[connection signal="body_entered" from="." to="." method="_on_body_entered"]