smashball/scenes/ball/ball.tscn
2025-11-13 09:01:56 -03:00

22 lines
694 B
Text

[gd_scene load_steps=4 format=3 uid="uid://cmgwv41ht3q4j"]
[ext_resource type="Texture2D" uid="uid://c44hadxh2458n" path="res://scenes/ball/ball.png" id="1_oqv3d"]
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_oqv3d"]
friction = 0.0
bounce = 0.3
[sub_resource type="CircleShape2D" id="CircleShape2D_nv6q1"]
radius = 8.062258
[node name="Ball" type="RigidBody2D"]
collision_layer = 2
collision_mask = 5
physics_material_override = SubResource("PhysicsMaterial_oqv3d")
continuous_cd = 1
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = ExtResource("1_oqv3d")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_nv6q1")