From 1c04dd56980017e80da3fc89b3349d1454e997e9 Mon Sep 17 00:00:00 2001 From: Matteo Balugani Date: Mon, 2 Oct 2023 22:12:29 +0200 Subject: [PATCH] changed physics --- entity/coal_diamond/coal.tscn | 4 ++-- entity/coal_diamond/diamond.tscn | 4 ++-- entity/coin_copper/coin_copper.tscn | 4 +--- entity/gem/gem.tscn | 4 ++-- entity/item/item_chalice.tscn | 4 ++-- entity/item/item_crown.tscn | 4 ++-- 6 files changed, 11 insertions(+), 13 deletions(-) diff --git a/entity/coal_diamond/coal.tscn b/entity/coal_diamond/coal.tscn index 12ec849..a8883f2 100644 --- a/entity/coal_diamond/coal.tscn +++ b/entity/coal_diamond/coal.tscn @@ -11,8 +11,8 @@ radius = 10.5 [node name="Coal" type="RigidBody2D"] collision_layer = 4 collision_mask = 14 -mass = 2.0 -inertia = 600.0 +mass = 0.75 +inertia = 1200.0 physics_material_override = ExtResource("1_ftt7x") continuous_cd = 1 can_sleep = false diff --git a/entity/coal_diamond/diamond.tscn b/entity/coal_diamond/diamond.tscn index 764598d..5f0d148 100644 --- a/entity/coal_diamond/diamond.tscn +++ b/entity/coal_diamond/diamond.tscn @@ -11,8 +11,8 @@ radius = 10.5119 [node name="Diamond" type="RigidBody2D"] collision_layer = 4 collision_mask = 14 -mass = 2.0 -inertia = 600.0 +mass = 3.0 +inertia = 400.0 physics_material_override = ExtResource("1_mma75") continuous_cd = 1 can_sleep = false diff --git a/entity/coin_copper/coin_copper.tscn b/entity/coin_copper/coin_copper.tscn index 9297f4b..def0919 100644 --- a/entity/coin_copper/coin_copper.tscn +++ b/entity/coin_copper/coin_copper.tscn @@ -5,7 +5,7 @@ [ext_resource type="Texture2D" uid="uid://2vtvoj6ua3cb" path="res://entity/coin_copper/coin_copper_outline_2.png" id="3_dq1f7"] [ext_resource type="PackedScene" uid="uid://bk1vvq5rug01m" path="res://collector/collectible.tscn" id="4_npwn2"] [ext_resource type="PackedScene" uid="uid://ujpra0s1kpqi" path="res://value/valuable.tscn" id="5_fd0r7"] -[ext_resource type="AudioStream" uid="uid://wy7f2j0wg1ur" path="res://audio/tap/click5.wav" id="7_fxd28"] +[ext_resource type="AudioStream" uid="uid://ds2rl6eg5jr1" path="res://audio/tap/click5.wav" id="7_fxd28"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_c6byl"] size = Vector2(14, 3) @@ -16,8 +16,6 @@ collision_mask = 14 inertia = 1000.0 physics_material_override = ExtResource("1_1fypc") continuous_cd = 1 -max_contacts_reported = 1 -contact_monitor = true can_sleep = false linear_damp = 0.1 angular_damp = 0.1 diff --git a/entity/gem/gem.tscn b/entity/gem/gem.tscn index 744004e..99fbf98 100644 --- a/entity/gem/gem.tscn +++ b/entity/gem/gem.tscn @@ -16,8 +16,8 @@ height = 10.0 [node name="Gem" type="RigidBody2D"] collision_layer = 4 collision_mask = 14 -mass = 1.5 -inertia = 800.0 +mass = 2.5 +inertia = 500.0 physics_material_override = ExtResource("1_vmemd") continuous_cd = 1 can_sleep = false diff --git a/entity/item/item_chalice.tscn b/entity/item/item_chalice.tscn index 684a80d..6b910b5 100644 --- a/entity/item/item_chalice.tscn +++ b/entity/item/item_chalice.tscn @@ -15,8 +15,8 @@ [node name="ItemChalice" type="RigidBody2D"] collision_layer = 5 collision_mask = 7 -mass = 1.5 -inertia = 800.0 +mass = 2.7 +inertia = 450.0 physics_material_override = ExtResource("1_vp2el") continuous_cd = 1 linear_damp = 0.1 diff --git a/entity/item/item_crown.tscn b/entity/item/item_crown.tscn index fcafaaa..713528a 100644 --- a/entity/item/item_crown.tscn +++ b/entity/item/item_crown.tscn @@ -17,8 +17,8 @@ height = 32.0 [node name="ItemCrown" type="RigidBody2D"] collision_layer = 5 collision_mask = 7 -mass = 1.5 -inertia = 800.0 +mass = 2.8 +inertia = 425.0 physics_material_override = ExtResource("1_j1ug7") continuous_cd = 1 linear_damp = 0.1