diff --git a/entity/coin.tres b/entity/coin.tres new file mode 100644 index 0000000..3105d8a --- /dev/null +++ b/entity/coin.tres @@ -0,0 +1,5 @@ +[gd_resource type="PhysicsMaterial" format=3 uid="uid://c6kn1an85lccr"] + +[resource] +rough = true +bounce = 0.3 diff --git a/entity/coin_copper.tscn b/entity/coin_copper.tscn index 6e6142f..ca2cb98 100644 --- a/entity/coin_copper.tscn +++ b/entity/coin_copper.tscn @@ -1,19 +1,19 @@ [gd_scene load_steps=5 format=3 uid="uid://c3kitncwpi42j"] +[ext_resource type="PhysicsMaterial" uid="uid://c6kn1an85lccr" path="res://entity/coin.tres" id="1_1merf"] [ext_resource type="Texture2D" uid="uid://dbdkb4vt7dh85" path="res://entity/coin_copper_4.png" id="1_wedw1"] [ext_resource type="Texture2D" uid="uid://2vtvoj6ua3cb" path="res://entity/coin_copper_outline_2.png" id="2_2ifq3"] -[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_06g2i"] -bounce = 0.1 - [sub_resource type="RectangleShape2D" id="RectangleShape2D_c6byl"] size = Vector2(14, 3) [node name="CoinCopper" type="RigidBody2D"] collision_layer = 5 collision_mask = 7 -physics_material_override = SubResource("PhysicsMaterial_06g2i") +physics_material_override = ExtResource("1_1merf") continuous_cd = 1 +linear_damp = 0.1 +angular_damp = 0.1 [node name="Outline" type="Sprite2D" parent="."] z_index = -10