diff options
author | Logan <logan@cflip.net> | 2022-09-23 18:31:54 -0600 |
---|---|---|
committer | Logan <logan@cflip.net> | 2022-09-23 18:31:54 -0600 |
commit | c796c56435a40a1e72b07ffad3840bc43c040171 (patch) | |
tree | 5b2d6a45b9fd611bc09e050242d53690cc0e29e3 | |
parent | f16a77d9137fa458b7af3e0c33361a1218159c1e (diff) |
Add bounce properties to basketball.
-rw-r--r-- | basketball.tscn | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/basketball.tscn b/basketball.tscn index c7203d2..91d7a77 100644 --- a/basketball.tscn +++ b/basketball.tscn @@ -1,13 +1,17 @@ -[gd_scene load_steps=4 format=2] +[gd_scene load_steps=5 format=2] [ext_resource path="res://ballforbasketing.png" type="Texture" id=1] [ext_resource path="res://Basketball.gd" type="Script" id=2] +[sub_resource type="PhysicsMaterial" id=2] +bounce = 0.5 + [sub_resource type="CircleShape2D" id=1] radius = 40.0 [node name="Basketball" type="RigidBody2D"] position = Vector2( 71, 541 ) +physics_material_override = SubResource( 2 ) script = ExtResource( 2 ) __meta__ = { "_edit_group_": true |