1
Fork 0
mirror of https://github.com/Steffo99/swear-jar.git synced 2024-11-25 00:54:19 +00:00

changed physics

This commit is contained in:
Matteo Balugani 2023-10-02 22:12:29 +02:00
parent ab508cbd07
commit 1c04dd5698
6 changed files with 11 additions and 13 deletions

View file

@ -11,8 +11,8 @@ radius = 10.5
[node name="Coal" type="RigidBody2D"] [node name="Coal" type="RigidBody2D"]
collision_layer = 4 collision_layer = 4
collision_mask = 14 collision_mask = 14
mass = 2.0 mass = 0.75
inertia = 600.0 inertia = 1200.0
physics_material_override = ExtResource("1_ftt7x") physics_material_override = ExtResource("1_ftt7x")
continuous_cd = 1 continuous_cd = 1
can_sleep = false can_sleep = false

View file

@ -11,8 +11,8 @@ radius = 10.5119
[node name="Diamond" type="RigidBody2D"] [node name="Diamond" type="RigidBody2D"]
collision_layer = 4 collision_layer = 4
collision_mask = 14 collision_mask = 14
mass = 2.0 mass = 3.0
inertia = 600.0 inertia = 400.0
physics_material_override = ExtResource("1_mma75") physics_material_override = ExtResource("1_mma75")
continuous_cd = 1 continuous_cd = 1
can_sleep = false can_sleep = false

View file

@ -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="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://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="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"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_c6byl"]
size = Vector2(14, 3) size = Vector2(14, 3)
@ -16,8 +16,6 @@ collision_mask = 14
inertia = 1000.0 inertia = 1000.0
physics_material_override = ExtResource("1_1fypc") physics_material_override = ExtResource("1_1fypc")
continuous_cd = 1 continuous_cd = 1
max_contacts_reported = 1
contact_monitor = true
can_sleep = false can_sleep = false
linear_damp = 0.1 linear_damp = 0.1
angular_damp = 0.1 angular_damp = 0.1

View file

@ -16,8 +16,8 @@ height = 10.0
[node name="Gem" type="RigidBody2D"] [node name="Gem" type="RigidBody2D"]
collision_layer = 4 collision_layer = 4
collision_mask = 14 collision_mask = 14
mass = 1.5 mass = 2.5
inertia = 800.0 inertia = 500.0
physics_material_override = ExtResource("1_vmemd") physics_material_override = ExtResource("1_vmemd")
continuous_cd = 1 continuous_cd = 1
can_sleep = false can_sleep = false

View file

@ -15,8 +15,8 @@
[node name="ItemChalice" type="RigidBody2D"] [node name="ItemChalice" type="RigidBody2D"]
collision_layer = 5 collision_layer = 5
collision_mask = 7 collision_mask = 7
mass = 1.5 mass = 2.7
inertia = 800.0 inertia = 450.0
physics_material_override = ExtResource("1_vp2el") physics_material_override = ExtResource("1_vp2el")
continuous_cd = 1 continuous_cd = 1
linear_damp = 0.1 linear_damp = 0.1

View file

@ -17,8 +17,8 @@ height = 32.0
[node name="ItemCrown" type="RigidBody2D"] [node name="ItemCrown" type="RigidBody2D"]
collision_layer = 5 collision_layer = 5
collision_mask = 7 collision_mask = 7
mass = 1.5 mass = 2.8
inertia = 800.0 inertia = 425.0
physics_material_override = ExtResource("1_j1ug7") physics_material_override = ExtResource("1_j1ug7")
continuous_cd = 1 continuous_cd = 1
linear_damp = 0.1 linear_damp = 0.1