ball.tscn 468 B

123456789101112131415161718
  1. [gd_scene load_steps=4 format=2]
  2. [ext_resource path="res://bowling_ball.png" type="Texture2D" id=1]
  3. [sub_resource type="PhysicsMaterial" id=1]
  4. bounce = 0.4
  5. [sub_resource type="CircleShape2D" id=2]
  6. radius = 30.0
  7. [node name="Ball" type="RigidDynamicBody2D"]
  8. physics_material_override = SubResource( 1 )
  9. [node name="Sprite2D" type="Sprite2D" parent="."]
  10. texture = ExtResource( 1 )
  11. [node name="Collision" type="CollisionShape2D" parent="."]
  12. shape = SubResource( 2 )