diff --git a/Autoload/Autoload.gd b/Autoload/Autoload.gd index a9a3823..ef6ef30 100644 --- a/Autoload/Autoload.gd +++ b/Autoload/Autoload.gd @@ -18,9 +18,7 @@ var os const alone_steps : Array = [ "res://Nodes/Nodes.tscn", # "res://ReparentingDeleting/ReparentingDeleting.tscn", # Really slow in 4.0 -# "res://Physics/2D/Physics2D.tscn", # Too slow still "res://AutomaticBugs/FunctionExecutor.tscn", # Only Needs to be executed once, but this is workaround a little -# "res://Physics/3D/Physics3D.tscn", # Loads very long but isn't necessarry so we skip it now ] func _init(): diff --git a/Physics/2D/Area2D.gd b/Physics/2D/Area2D.gd deleted file mode 100644 index 4002928..0000000 --- a/Physics/2D/Area2D.gd +++ /dev/null @@ -1,29 +0,0 @@ -extends Node2D - -var move_vector: Vector2 = Vector2(1, 1) -var speed: float = 1000.0 - - -func _ready(): - pass - - -func _process(delta): - position += Vector2(move_vector.x * delta * speed, move_vector.y * delta * speed) - - if position.y > Autoload.screen_size.y: - move_vector.y = -1 - elif position.y < 0: - move_vector.y = 1 - elif position.x > Autoload.screen_size.x: - move_vector.x = -1 - elif position.x < 0: - move_vector.x = 1 - - -func _on_Area2D_area_entered(area): - move_vector = -move_vector - - -func _on_Area2D_body_entered(body): - move_vector = Vector2(move_vector.x, -move_vector.y) diff --git a/Physics/2D/Area2D.tscn b/Physics/2D/Area2D.tscn deleted file mode 100644 index 101597f..0000000 --- a/Physics/2D/Area2D.tscn +++ /dev/null @@ -1,22 +0,0 @@ -[gd_scene load_steps=3 format=3 uid="uid://dke62wldnee2a"] - -[ext_resource type="Texture2D" uid="uid://bp1jqfv4eumxi" path="res://icon.png" id="1"] -[ext_resource type="Script" path="res://Physics/2D/Area2D.gd" id="2"] - -[node name="Area2D" type="Area2D"] -script = ExtResource( "2" ) - -[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."] -polygon = PackedVector2Array(4.018, -13.1782, -15.9057, 3.23778, 1.63277, 17.5492, 19.3115, 2.39594) -script = null - -[node name="CollisionPolygon2D2" type="CollisionPolygon2D" parent="."] -polygon = PackedVector2Array(-4.58427, -16.8342, -20.5974, -4.94143, -8.23639, 16.784, 20.4187, 13.5065) -script = null - -[node name="Sprite" type="Sprite2D" parent="."] -texture = ExtResource( "1" ) -script = null - -[connection signal="area_entered" from="." to="." method="_on_Area2D_area_entered"] -[connection signal="body_entered" from="." to="." method="_on_Area2D_body_entered"] diff --git a/Physics/2D/KinematicBody2D.gd b/Physics/2D/KinematicBody2D.gd deleted file mode 100644 index 5d77a70..0000000 --- a/Physics/2D/KinematicBody2D.gd +++ /dev/null @@ -1,21 +0,0 @@ -extends CharacterBody2D - -var move_vector: Vector2 = Vector2(1, 1) -var speed: float = 1000.0 - - -func _ready(): - pass - - -func _process(delta): - position += Vector2(move_vector.x * delta * speed, move_vector.y * delta * speed) - - if position.y > Autoload.screen_size.y: - move_vector.y = -1 - elif position.y < 0: - move_vector.y = 1 - elif position.x > Autoload.screen_size.x: - move_vector.x = -1 - elif position.x < 0: - move_vector.x = 1 diff --git a/Physics/2D/KinematicBody2D.tscn b/Physics/2D/KinematicBody2D.tscn deleted file mode 100644 index 4e8c235..0000000 --- a/Physics/2D/KinematicBody2D.tscn +++ /dev/null @@ -1,17 +0,0 @@ -[gd_scene load_steps=3 format=3 uid="uid://c30wdiq4o3bog"] - -[ext_resource type="Texture2D" uid="uid://bp1jqfv4eumxi" path="res://icon.png" id="1"] -[ext_resource type="Script" path="res://Physics/2D/KinematicBody2D.gd" id="2"] - -[node name="KinematicBody2D" type="CharacterBody2D"] -script = ExtResource( "2" ) - -[node name="Sprite" type="Sprite2D" parent="."] -modulate = Color(0.74902, 0.133333, 0.133333, 1) -rotation = 4.45932 -texture = ExtResource( "1" ) -script = null - -[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."] -polygon = PackedVector2Array(-10.6781, -7.48182, -12.4953, 17.1263, 15.2543, 6.19464, 4.32263, -14.4073) -script = null diff --git a/Physics/2D/Physics2D.gd b/Physics/2D/Physics2D.gd deleted file mode 100644 index 66c0e9e..0000000 --- a/Physics/2D/Physics2D.gd +++ /dev/null @@ -1,5 +0,0 @@ -extends Node2D - - -func _physics_process(delta): - pass diff --git a/Physics/2D/Physics2D.tscn b/Physics/2D/Physics2D.tscn deleted file mode 100644 index 03f9b10..0000000 --- a/Physics/2D/Physics2D.tscn +++ /dev/null @@ -1,235 +0,0 @@ -[gd_scene load_steps=6 format=3 uid="uid://ffdhtxy2yano"] - -[ext_resource type="Script" path="res://Physics/2D/Physics2D.gd" id="1"] -[ext_resource type="PackedScene" uid="uid://dke62wldnee2a" path="res://Physics/2D/Area2D.tscn" id="2"] -[ext_resource type="PackedScene" uid="uid://c30wdiq4o3bog" path="res://Physics/2D/KinematicBody2D.tscn" id="3"] -[ext_resource type="PackedScene" path="res://Physics/2D/StaticBody2D.tscn" id="4"] -[ext_resource type="PackedScene" path="res://Physics/2D/RigidBody2D.tscn" id="5"] - -[node name="Physics2D" type="Node2D"] -script = ExtResource( "1" ) - -[node name="Area2D" type="Node2D" parent="."] -script = null - -[node name="Area2D" parent="Area2D" instance=ExtResource( "2" )] -position = Vector2(166.677, 52.3842) - -[node name="Area2D2" parent="Area2D" instance=ExtResource( "2" )] -position = Vector2(209.537, 193.663) - -[node name="Area2D3" parent="Area2D" instance=ExtResource( "2" )] -position = Vector2(450.822, 122.23) - -[node name="Area2D4" parent="Area2D" instance=ExtResource( "2" )] -position = Vector2(336.529, 293.669) - -[node name="Area2D5" parent="Area2D" instance=ExtResource( "2" )] -position = Vector2(555.59, 42.8598) - -[node name="Area2D6" parent="Area2D" instance=ExtResource( "2" )] -position = Vector2(598.45, 184.139) - -[node name="Area2D7" parent="Area2D" instance=ExtResource( "2" )] -position = Vector2(839.735, 112.705) - -[node name="Area2D8" parent="Area2D" instance=ExtResource( "2" )] -position = Vector2(725.442, 284.145) - -[node name="Area2D10" parent="Area2D" instance=ExtResource( "2" )] -position = Vector2(420.661, 330.179) - -[node name="Area2D12" parent="Area2D" instance=ExtResource( "2" )] -position = Vector2(547.653, 430.186) - -[node name="Area2D14" parent="Area2D" instance=ExtResource( "2" )] -position = Vector2(122.23, 457.171) - -[node name="Area2D16" parent="Area2D" instance=ExtResource( "2" )] -position = Vector2(249.222, 557.178) - -[node name="Area2D18" parent="Area2D" instance=ExtResource( "2" )] -position = Vector2(660.359, 444.472) - -[node name="Area2D19" parent="Area2D" instance=ExtResource( "2" )] -position = Vector2(901.644, 373.039) - -[node name="Area2D20" parent="Area2D" instance=ExtResource( "2" )] -position = Vector2(787.351, 544.478) - -[node name="Area2D9" parent="Area2D" instance=ExtResource( "2" )] -position = Vector2(660.036, 115.278) - -[node name="Area2D11" parent="Area2D" instance=ExtResource( "2" )] -position = Vector2(355.255, 161.312) - -[node name="Area2D13" parent="Area2D" instance=ExtResource( "2" )] -position = Vector2(482.247, 261.319) - -[node name="Area2D15" parent="Area2D" instance=ExtResource( "2" )] -position = Vector2(56.8237, 288.304) - -[node name="Area2D17" parent="Area2D" instance=ExtResource( "2" )] -position = Vector2(183.816, 388.311) - -[node name="Area2D21" parent="Area2D" instance=ExtResource( "2" )] -position = Vector2(594.953, 275.605) - -[node name="Area2D22" parent="Area2D" instance=ExtResource( "2" )] -position = Vector2(836.238, 204.172) - -[node name="Area2D23" parent="Area2D" instance=ExtResource( "2" )] -position = Vector2(721.945, 375.611) - -[node name="Area2D24" parent="Area2D" instance=ExtResource( "2" )] -position = Vector2(696.901, 221.117) - -[node name="Area2D25" parent="Area2D" instance=ExtResource( "2" )] -position = Vector2(392.12, 267.151) - -[node name="Area2D26" parent="Area2D" instance=ExtResource( "2" )] -position = Vector2(519.112, 367.158) - -[node name="Area2D27" parent="Area2D" instance=ExtResource( "2" )] -position = Vector2(93.689, 394.143) - -[node name="Area2D28" parent="Area2D" instance=ExtResource( "2" )] -position = Vector2(220.681, 494.15) - -[node name="Area2D29" parent="Area2D" instance=ExtResource( "2" )] -position = Vector2(631.818, 381.444) - -[node name="Area2D30" parent="Area2D" instance=ExtResource( "2" )] -position = Vector2(873.103, 310.011) - -[node name="Area2D31" parent="Area2D" instance=ExtResource( "2" )] -position = Vector2(758.81, 481.45) - -[node name="Area2D32" parent="Area2D" instance=ExtResource( "2" )] -position = Vector2(639.819, 9.43819) - -[node name="Area2D33" parent="Area2D" instance=ExtResource( "2" )] -position = Vector2(335.038, 55.4722) - -[node name="Area2D34" parent="Area2D" instance=ExtResource( "2" )] -position = Vector2(462.03, 155.479) - -[node name="Area2D35" parent="Area2D" instance=ExtResource( "2" )] -position = Vector2(36.6071, 182.464) - -[node name="Area2D36" parent="Area2D" instance=ExtResource( "2" )] -position = Vector2(163.599, 282.471) - -[node name="Area2D37" parent="Area2D" instance=ExtResource( "2" )] -position = Vector2(574.736, 169.765) - -[node name="Area2D38" parent="Area2D" instance=ExtResource( "2" )] -position = Vector2(816.021, 98.3322) - -[node name="Area2D39" parent="Area2D" instance=ExtResource( "2" )] -position = Vector2(701.728, 269.771) - -[node name="KinematicBody2D" type="Node2D" parent="."] -script = null - -[node name="KinematicBody2D" parent="KinematicBody2D" instance=ExtResource( "3" )] -position = Vector2(90.4819, 302.4) - -[node name="KinematicBody2D2" parent="KinematicBody2D" instance=ExtResource( "3" )] -position = Vector2(380.142, 465.25) - -[node name="KinematicBody2D3" parent="KinematicBody2D" instance=ExtResource( "3" )] -position = Vector2(333.423, 131.54) - -[node name="KinematicBody2D4" parent="KinematicBody2D" instance=ExtResource( "3" )] -position = Vector2(509.622, 242.332) - -[node name="KinematicBody2D5" parent="KinematicBody2D" instance=ExtResource( "3" )] -position = Vector2(914.078, 76.812) - -[node name="KinematicBody2D6" parent="KinematicBody2D" instance=ExtResource( "3" )] -position = Vector2(251.025, 329.752) - -[node name="KinematicBody2D7" parent="KinematicBody2D" instance=ExtResource( "3" )] -position = Vector2(540.685, 492.602) - -[node name="KinematicBody2D8" parent="KinematicBody2D" instance=ExtResource( "3" )] -position = Vector2(493.966, 158.892) - -[node name="KinematicBody2D9" parent="KinematicBody2D" instance=ExtResource( "3" )] -position = Vector2(670.165, 269.684) - -[node name="KinematicBody2D10" parent="KinematicBody2D" instance=ExtResource( "3" )] -position = Vector2(1074.62, 104.164) - -[node name="StaticBody2D" type="Node2D" parent="."] -position = Vector2(73.6327, 117.071) -script = null - -[node name="StaticBody2D" parent="StaticBody2D" instance=ExtResource( "4" )] - -[node name="StaticBody2D2" parent="StaticBody2D" instance=ExtResource( "4" )] -position = Vector2(171.12, 267.286) - -[node name="StaticBody2D3" parent="StaticBody2D" instance=ExtResource( "4" )] -position = Vector2(618.011, -2.82837) - -[node name="StaticBody2D4" parent="StaticBody2D" instance=ExtResource( "4" )] -position = Vector2(793.374, 120.208) - -[node name="StaticBody2D6" parent="StaticBody2D" instance=ExtResource( "4" )] -position = Vector2(68.974, 216.436) - -[node name="StaticBody2D7" parent="StaticBody2D" instance=ExtResource( "4" )] -position = Vector2(240.094, 483.722) - -[node name="StaticBody2D8" parent="StaticBody2D" instance=ExtResource( "4" )] -position = Vector2(686.985, 213.607) - -[node name="StaticBody2D9" parent="StaticBody2D" instance=ExtResource( "4" )] -position = Vector2(862.348, 336.644) - -[node name="StaticBody2D5" parent="StaticBody2D" instance=ExtResource( "4" )] -position = Vector2(704.278, 296.985) - -[node name="RigidBody2D" type="Node2D" parent="."] -script = null - -[node name="RigidBody2D" parent="RigidBody2D" instance=ExtResource( "5" )] -position = Vector2(178.191, 120.915) - -[node name="RigidBody2D2" parent="RigidBody2D" instance=ExtResource( "5" )] -position = Vector2(192.874, 313.132) - -[node name="RigidBody2D3" parent="RigidBody2D" instance=ExtResource( "5" )] -position = Vector2(386.426, 210.35) - -[node name="RigidBody2D4" parent="RigidBody2D" instance=ExtResource( "5" )] -position = Vector2(374.412, 43.4946) - -[node name="RigidBody2D5" parent="RigidBody2D" instance=ExtResource( "5" )] -position = Vector2(609.344, 331.82) - -[node name="RigidBody2D6" parent="RigidBody2D" instance=ExtResource( "5" )] -position = Vector2(756.177, 187.657) - -[node name="RigidBody2D7" parent="RigidBody2D" instance=ExtResource( "5" )] -position = Vector2(754.842, 43.4946) - -[node name="RigidBody2D8" parent="RigidBody2D" instance=ExtResource( "5" )] -position = Vector2(490.543, 544.06) - -[node name="RigidBody2D9" parent="RigidBody2D" instance=ExtResource( "5" )] -position = Vector2(490.543, 544.06) - -[node name="RigidBody2D10" parent="RigidBody2D" instance=ExtResource( "5" )] -position = Vector2(282.873, 201.928) - -[node name="RigidBody2D11" parent="RigidBody2D" instance=ExtResource( "5" )] -position = Vector2(281.538, 57.7651) - -[node name="RigidBody2D12" parent="RigidBody2D" instance=ExtResource( "5" )] -position = Vector2(17.2386, 558.33) - -[node name="RigidBody2D13" parent="RigidBody2D" instance=ExtResource( "5" )] -position = Vector2(17.2386, 558.33) diff --git a/Physics/2D/RigidBody2D.gd b/Physics/2D/RigidBody2D.gd deleted file mode 100644 index e41f2ab..0000000 --- a/Physics/2D/RigidBody2D.gd +++ /dev/null @@ -1,22 +0,0 @@ -extends RigidBody2D - -var move_vector: Vector2 = Vector2(1, 1) -var speed: float = 1000.0 - - -func _ready(): - pass - - -func _process(delta): - #position += Vector2(move_vector.x * delta * speed,move_vector.y * delta * speed) - - if position.y > Autoload.screen_size.y: - move_vector.y = -1 - elif position.y < 0: - move_vector.y = 1 - elif position.x > Autoload.screen_size.x: - move_vector.x = -1 - elif position.x < 0: - move_vector.x = 1 - apply_impulse(move_vector, Vector2(0, 1)) diff --git a/Physics/2D/RigidBody2D.tscn b/Physics/2D/RigidBody2D.tscn deleted file mode 100644 index 4b62902..0000000 --- a/Physics/2D/RigidBody2D.tscn +++ /dev/null @@ -1,18 +0,0 @@ -[gd_scene load_steps=3 format=3 uid="uid://c6nagiem1y61r"] - -[ext_resource type="Script" path="res://Physics/2D/RigidBody2D.gd" id="1"] -[ext_resource type="Texture2D" uid="uid://bp1jqfv4eumxi" path="res://icon.png" id="2"] - -[node name="RigidBody2D" type="RigidBody2D"] -gravity_scale = 0.1 -script = ExtResource( "1" ) - -[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."] -polygon = PackedVector2Array(-2.29324, -15.2017, -12.0322, 4.46353, 8.38219, 7.64743) -script = null - -[node name="Sprite" type="Sprite2D" parent="."] -modulate = Color(0.47451, 0, 0.427451, 1) -rotation = 0.792379 -texture = ExtResource( "2" ) -script = null diff --git a/Physics/2D/StaticBody2D.gd b/Physics/2D/StaticBody2D.gd deleted file mode 100644 index b4380f0..0000000 --- a/Physics/2D/StaticBody2D.gd +++ /dev/null @@ -1,21 +0,0 @@ -extends StaticBody2D - -var move_vector: Vector2 = Vector2(1, 1) -var speed: float = 1000.0 - - -func _ready(): - pass - - -func _process(delta): - position += Vector2(move_vector.x * delta * speed, move_vector.y * delta * speed) - - if position.y > Autoload.screen_size.y: - move_vector.y = -1 - elif position.y < 0: - move_vector.y = 1 - elif position.x > Autoload.screen_size.x: - move_vector.x = -1 - elif position.x < 0: - move_vector.x = 1 diff --git a/Physics/2D/StaticBody2D.tscn b/Physics/2D/StaticBody2D.tscn deleted file mode 100644 index 5053f79..0000000 --- a/Physics/2D/StaticBody2D.tscn +++ /dev/null @@ -1,17 +0,0 @@ -[gd_scene load_steps=3 format=3 uid="uid://i3qfkqf31vkh"] - -[ext_resource type="Texture2D" uid="uid://bp1jqfv4eumxi" path="res://icon.png" id="1"] -[ext_resource type="Script" path="res://Physics/2D/StaticBody2D.gd" id="2"] - -[node name="StaticBody2D" type="StaticBody2D"] -script = ExtResource( "2" ) - -[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."] -polygon = PackedVector2Array(-0.566719, -5.64549, -7.24092, 1.19557, -2.06841, 8.20348, 5.60692, 5.20009, 4.10522, -5.14492) -script = null - -[node name="Sprite" type="Sprite2D" parent="."] -modulate = Color(0, 1, 1, 0.584314) -rotation = 0.270526 -texture = ExtResource( "1" ) -script = null diff --git a/Physics/3D/Physics3D.tscn b/Physics/3D/Physics3D.tscn deleted file mode 100644 index 6a7d656..0000000 --- a/Physics/3D/Physics3D.tscn +++ /dev/null @@ -1,285 +0,0 @@ -[gd_scene load_steps=11 format=3 uid="uid://c1ur0715b1vt1"] - -[ext_resource type="Texture2D" uid="uid://bp1jqfv4eumxi" path="res://icon.png" id="1"] -[ext_resource type="Script" path="res://Physics/3D/StaticArena.gd" id="2"] -[ext_resource type="PackedScene" path="res://Physics/3D/RigidBody3D.tscn" id="3"] - -[sub_resource type="PhysicsMaterial" id="1"] -friction = 0.89 -rough = true - -[sub_resource type="StandardMaterial3D" id="2"] -albedo_color = Color(1, 1, 1, 0.521569) -albedo_texture = ExtResource( "1" ) -metallic = 1.0 -metallic_specular = 0.86 -metallic_texture = ExtResource( "1" ) - -[sub_resource type="BoxShape3D" id="3"] -size = Vector3(100, 4, 100) - -[sub_resource type="StandardMaterial3D" id="4"] -diffuse_mode = 1 -albedo_texture = ExtResource( "1" ) -metallic = 0.8 - -[sub_resource type="BoxShape3D" id="5"] -size = Vector3(100, 40, 10) - -[sub_resource type="BoxShape3D" id="6"] -size = Vector3(23.7588, 2.7569, 44.562) - -[sub_resource type="BoxShape3D" id="7"] -size = Vector3(23.7588, 2.7569, 44.562) - -[node name="Physics3D" type="Node3D"] -script = null - -[node name="DirectionalLight" type="DirectionalLight3D" parent="."] -transform = Transform3D(1, 0, 0, 0, -0.959707, 0.281002, 0, -0.281002, -0.959707, 0, 35.3705, 0) -light_energy = 1.45 -script = null - -[node name="StaticArena" type="Node3D" parent="."] -script = ExtResource( "2" ) - -[node name="StaticBody" type="StaticBody3D" parent="StaticArena"] -collision_layer = 2147483651 -collision_mask = 279045 -physics_material_override = SubResource( "1" ) -script = null - -[node name="CSGBox" type="CSGBox3D" parent="StaticArena/StaticBody"] -material = SubResource( "2" ) -script = null - -[node name="CollisionShape" type="CollisionShape3D" parent="StaticArena/StaticBody"] -shape = SubResource( "3" ) -script = null - -[node name="StaticBody2" type="StaticBody3D" parent="StaticArena"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 18.1689, 1.64214) -collision_layer = 2147483651 -collision_mask = 279045 -physics_material_override = SubResource( "1" ) -script = null - -[node name="CSGBox" type="CSGBox3D" parent="StaticArena/StaticBody2"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -46.5124) -material = SubResource( "4" ) -script = null - -[node name="CollisionShape" type="CollisionShape3D" parent="StaticArena/StaticBody2"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -46.709) -shape = SubResource( "5" ) -script = null - -[node name="StaticBody3" type="StaticBody3D" parent="StaticArena"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 18.1689, 91.732) -collision_layer = 2147483651 -collision_mask = 279045 -physics_material_override = SubResource( "1" ) -script = null - -[node name="CSGBox" type="CSGBox3D" parent="StaticArena/StaticBody3"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -46.5124) -material = SubResource( "4" ) -script = null - -[node name="CollisionShape" type="CollisionShape3D" parent="StaticArena/StaticBody3"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -46.709) -shape = SubResource( "5" ) -script = null - -[node name="StaticBody4" type="StaticBody3D" parent="StaticArena"] -transform = Transform3D(-1.62921e-07, 0, -1, 0, 1, 0, 1, 0, -1.62921e-07, -1.90218, 18.1689, 0.572887) -collision_layer = 2147483651 -collision_mask = 279045 -physics_material_override = SubResource( "1" ) -script = null - -[node name="CSGBox" type="CSGBox3D" parent="StaticArena/StaticBody4"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.13509, -46.5124) -material = SubResource( "4" ) -script = null - -[node name="CollisionShape" type="CollisionShape3D" parent="StaticArena/StaticBody4"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -46.709) -shape = SubResource( "5" ) -script = null - -[node name="StaticBody5" type="StaticBody3D" parent="StaticArena"] -transform = Transform3D(-1.62921e-07, 0, -1, 0, 1, 0, 1, 0, -1.62921e-07, -92.1931, 18.8845, 0.814518) -collision_layer = 2147483651 -collision_mask = 279045 -physics_material_override = SubResource( "1" ) -script = null - -[node name="CSGBox" type="CSGBox3D" parent="StaticArena/StaticBody5"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -46.5124) -material = SubResource( "4" ) -script = null - -[node name="CollisionShape" type="CollisionShape3D" parent="StaticArena/StaticBody5"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -46.709) -shape = SubResource( "5" ) -script = null - -[node name="StaticBody6" type="StaticBody3D" parent="StaticArena"] -transform = Transform3D(0.998532, 0.013617, -0.0524264, 0, 0.967885, 0.251394, 0.054166, -0.251025, 0.966464, -16.8315, 7.76313, 0) -script = null - -[node name="CollisionShape" type="CollisionShape3D" parent="StaticArena/StaticBody6"] -shape = SubResource( "6" ) -script = null - -[node name="CSGBox" type="CSGBox3D" parent="StaticArena/StaticBody6"] -script = null - -[node name="StaticBody7" type="StaticBody3D" parent="StaticArena"] -transform = Transform3D(-0.638995, 0.193375, -0.744507, 0, 0.967885, 0.251394, 0.769211, 0.16064, -0.618474, 10.0702, 7.03413, 0) -script = null - -[node name="CollisionShape" type="CollisionShape3D" parent="StaticArena/StaticBody7"] -transform = Transform3D(1, -9.31323e-10, 0, 0, 1, 1.49012e-08, 3.72529e-09, 1.49012e-08, 1, 0, 0, 0) -shape = SubResource( "7" ) -script = null - -[node name="CSGBox" type="CSGBox3D" parent="StaticArena/StaticBody7"] -script = null - -[node name="StaticBody8" type="StaticBody3D" parent="StaticArena"] -transform = Transform3D(-0.314953, 0.2386, -0.918626, 0, 0.967885, 0.251394, 0.949107, 0.0791774, -0.304838, 10.0702, 7.03413, 24.278) -script = null - -[node name="CollisionShape" type="CollisionShape3D" parent="StaticArena/StaticBody8"] -transform = Transform3D(1, -9.31323e-10, 0, 0, 1, 1.49012e-08, 3.72529e-09, 1.49012e-08, 1, 0, 0, 0) -shape = SubResource( "7" ) -script = null - -[node name="CSGBox" type="CSGBox3D" parent="StaticArena/StaticBody8"] -script = null - -[node name="StaticBody9" type="StaticBody3D" parent="StaticArena"] -transform = Transform3D(0.289683, -0.599318, 0.746259, -0.123608, -0.796586, -0.591753, 0.949107, 0.0791774, -0.304838, 10.0702, 0.940654, -25.555) -script = null - -[node name="CollisionShape" type="CollisionShape3D" parent="StaticArena/StaticBody9"] -transform = Transform3D(1, 7.45058e-09, 0, 1.49012e-08, 1, 4.84288e-08, 0, -3.1665e-08, 1, 0, 0, 0) -shape = SubResource( "7" ) -script = null - -[node name="CSGBox" type="CSGBox3D" parent="StaticArena/StaticBody9"] -script = null - -[node name="Objects" type="Node3D" parent="."] -script = null - -[node name="RigidBody" parent="Objects" instance=ExtResource( "3" )] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -8.50424, 17.1047, 14.7363) - -[node name="RigidBody2" parent="Objects" instance=ExtResource( "3" )] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.7864, 12.6031, 19.1751) - -[node name="RigidBody3" parent="Objects" instance=ExtResource( "3" )] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -16.9896, 10.6319, 28.8764) - -[node name="RigidBody4" parent="Objects" instance=ExtResource( "3" )] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -26.0866, 12.6031, -18.3703) - -[node name="RigidBody5" parent="Objects" instance=ExtResource( "3" )] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 22.2505, 12.6031, -20.7732) - -[node name="RigidBody6" parent="Objects" instance=ExtResource( "3" )] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 24.085, 12.6031, 8.2937) - -[node name="RigidBody7" parent="Objects" instance=ExtResource( "3" )] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 18.9278, 12.6031, 23.4173) - -[node name="RigidBody8" parent="Objects" instance=ExtResource( "3" )] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.85186, 24.8548, -9.87658) - -[node name="Camera" type="Camera3D" parent="."] -transform = Transform3D(0.922114, 0.23703, -0.305815, 0.0163102, 0.765871, 0.642787, 0.386575, -0.597711, 0.702354, -25.392, 55.117, 39.851) -current = true -far = 200.0 -script = null - -[node name="Joints" type="Node3D" parent="."] -script = null - -[node name="Cone" type="Node3D" parent="Joints"] -script = null - -[node name="RigidBody2" parent="Joints/Cone" instance=ExtResource( "3" )] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -23.2888, 6.73046, 77.026) -gravity_scale = -3.0 - -[node name="RigidBody" parent="Joints/Cone" instance=ExtResource( "3" )] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -23.2888, 15.3482, 19.1751) - -[node name="ConeTwistJoint" type="ConeTwistJoint3D" parent="Joints/Cone"] -nodes/node_a = NodePath("../RigidBody") -nodes/node_b = NodePath("../RigidBody2") -script = null - -[node name="Generic" type="Node3D" parent="Joints"] -script = null - -[node name="RigidBody" parent="Joints/Generic" instance=ExtResource( "3" )] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -23.2888, 33.1278, 67.0796) -gravity_scale = -3.0 - -[node name="RigidBody2" parent="Joints/Generic" instance=ExtResource( "3" )] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -23.2888, 33.1278, -0.445078) - -[node name="Generic6DOFJoint" type="Generic6DOFJoint3D" parent="Joints/Generic"] -nodes/node_a = NodePath("../RigidBody") -nodes/node_b = NodePath("../RigidBody2") -script = null - -[node name="Hinge" type="Node3D" parent="Joints"] -script = null - -[node name="RigidBody" parent="Joints/Hinge" instance=ExtResource( "3" )] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 18.6153, 33.1278, 59.2096) -gravity_scale = -3.0 - -[node name="RigidBody2" parent="Joints/Hinge" instance=ExtResource( "3" )] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8.17695, 33.1278, 19.1751) - -[node name="HingeJoint" type="HingeJoint3D" parent="Joints/Hinge"] -nodes/node_a = NodePath("../RigidBody") -nodes/node_b = NodePath("../RigidBody2") -script = null - -[node name="Pin" type="Node3D" parent="Joints"] -script = null - -[node name="RigidBody" parent="Joints/Pin" instance=ExtResource( "3" )] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -23.2888, 4.83369, 116.28) -gravity_scale = -3.0 - -[node name="RigidBody2" parent="Joints/Pin" instance=ExtResource( "3" )] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -23.2888, 18.4589, 10.7729) - -[node name="PinJoint" type="PinJoint3D" parent="Joints/Pin"] -nodes/node_a = NodePath("../RigidBody") -nodes/node_b = NodePath("../RigidBody2") -script = null - -[node name="Slider" type="Node3D" parent="Joints"] -script = null - -[node name="RigidBody" parent="Joints/Slider" instance=ExtResource( "3" )] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -23.2888, 17.7427, 19.1751) -gravity_scale = -3.0 - -[node name="RigidBody2" parent="Joints/Slider" instance=ExtResource( "3" )] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -33.3355, 16.2845, 19.1751) - -[node name="SliderJoint" type="SliderJoint3D" parent="Joints/Slider"] -nodes/node_a = NodePath("../RigidBody") -nodes/node_b = NodePath("../RigidBody2") -linear_motion/softness = 1.43 -script = null diff --git a/Physics/3D/RigidBody3D.gd b/Physics/3D/RigidBody3D.gd deleted file mode 100644 index 5f88225..0000000 --- a/Physics/3D/RigidBody3D.gd +++ /dev/null @@ -1,5 +0,0 @@ -extends RigidBody3D - -func _physics_process(delta: float) -> void: - add_force(Vector3(0,4 * delta ,0),Vector3(0,0,0)) - pass diff --git a/Physics/3D/RigidBody3D.tscn b/Physics/3D/RigidBody3D.tscn deleted file mode 100644 index c8bded6..0000000 --- a/Physics/3D/RigidBody3D.tscn +++ /dev/null @@ -1,20 +0,0 @@ -[gd_scene load_steps=3 format=3 uid="uid://bs8jtr3b56fnr"] - -[ext_resource type="Script" path="res://Physics/3D/RigidBody3D.gd" id="1"] - -[sub_resource type="SphereShape3D" id="1"] - -[node name="RigidBody" type="RigidBody3D"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -23.2888, 33.1278, 19.1751) -gravity_scale = 5.0 -continuous_cd = true -linear_velocity = Vector3(0, 5, 0) -script = ExtResource( "1" ) - -[node name="CollisionShape" type="CollisionShape3D" parent="."] -transform = Transform3D(5, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0) -shape = SubResource( "1" ) -script = null - -[node name="CSGSphere" type="CSGSphere3D" parent="CollisionShape"] -script = null diff --git a/Physics/3D/StaticArena.gd b/Physics/3D/StaticArena.gd deleted file mode 100644 index faa857f..0000000 --- a/Physics/3D/StaticArena.gd +++ /dev/null @@ -1,5 +0,0 @@ -extends Node3D - - -func _process(delta): - rotate(Vector3(0, 1, 0).normalized(), 2 * delta)