grunk/levels/physics_test/physics_test.tscn

167 lines
6.1 KiB
Plaintext
Raw Normal View History

[gd_scene load_steps=16 format=3 uid="uid://c7us4smgk3487"]
[ext_resource type="Script" uid="uid://68r4ht5ut1ct" path="res://src/game/level.gd" id="1_252gx"]
[ext_resource type="PackedScene" uid="uid://bwe2jdmvinhqd" path="res://src/player/player.tscn" id="1_sumi4"]
[ext_resource type="ArrayMesh" uid="uid://dpr5cgq743f4s" path="res://assets/level/floor/floor_9x9.mesh" id="2_jjage"]
[ext_resource type="Script" uid="uid://040xta01xqxd" path="res://src/props/physics/holdable.gd" id="4_252gx"]
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_hda7d"]
[sub_resource type="Sky" id="Sky_pka60"]
sky_material = SubResource("ProceduralSkyMaterial_hda7d")
[sub_resource type="Environment" id="Environment_nl4kk"]
background_mode = 2
sky = SubResource("Sky_pka60")
[sub_resource type="WorldBoundaryShape3D" id="WorldBoundaryShape3D_6j7vt"]
[sub_resource type="BoxMesh" id="BoxMesh_252gx"]
[sub_resource type="BoxShape3D" id="BoxShape3D_35l2h"]
[sub_resource type="BoxMesh" id="BoxMesh_35l2h"]
size = Vector3(2, 2, 2)
[sub_resource type="BoxShape3D" id="BoxShape3D_sc5il"]
size = Vector3(2, 2, 2)
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_35l2h"]
bounce = 0.5
[sub_resource type="SphereMesh" id="SphereMesh_sc5il"]
radius = 0.15
height = 0.3
[sub_resource type="SphereShape3D" id="SphereShape3D_hyy3g"]
radius = 0.15
[node name="PhysicsTest" type="Node3D"]
script = ExtResource("1_252gx")
id = "physics_test"
pretty_name = "Physics Testing Sandbox"
[node name="Player" parent="." instance=ExtResource("1_sumi4")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(0.866025, -0.156955, -0.474726, 0.5, 0.271854, 0.82225, 0, -0.949453, 0.31391, 0, 0, 0)
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_nl4kk")
[node name="WorldFloor" type="StaticBody3D" parent="." groups=["PlasticMaterial"]]
collision_layer = 5
[node name="MeshInstance3D" type="MeshInstance3D" parent="WorldFloor"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -9)
mesh = ExtResource("2_jjage")
[node name="MeshInstance3D2" type="MeshInstance3D" parent="WorldFloor"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 9, 0, -9)
mesh = ExtResource("2_jjage")
[node name="MeshInstance3D3" type="MeshInstance3D" parent="WorldFloor"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -9, 0, -9)
mesh = ExtResource("2_jjage")
[node name="MeshInstance3D4" type="MeshInstance3D" parent="WorldFloor"]
mesh = ExtResource("2_jjage")
[node name="MeshInstance3D5" type="MeshInstance3D" parent="WorldFloor"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 9, 0, 0)
mesh = ExtResource("2_jjage")
[node name="MeshInstance3D6" type="MeshInstance3D" parent="WorldFloor"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -9, 0, 0)
mesh = ExtResource("2_jjage")
[node name="MeshInstance3D7" type="MeshInstance3D" parent="WorldFloor"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 18, 0, -9)
mesh = ExtResource("2_jjage")
[node name="MeshInstance3D8" type="MeshInstance3D" parent="WorldFloor"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 18, 0, 0)
mesh = ExtResource("2_jjage")
[node name="MeshInstance3D9" type="MeshInstance3D" parent="WorldFloor"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 27, 0, -9)
mesh = ExtResource("2_jjage")
[node name="MeshInstance3D10" type="MeshInstance3D" parent="WorldFloor"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 27, 0, 0)
mesh = ExtResource("2_jjage")
[node name="MeshInstance3D11" type="MeshInstance3D" parent="WorldFloor"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 36, 0, -9)
mesh = ExtResource("2_jjage")
[node name="MeshInstance3D12" type="MeshInstance3D" parent="WorldFloor"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 36, 0, 0)
mesh = ExtResource("2_jjage")
[node name="MeshInstance3D13" type="MeshInstance3D" parent="WorldFloor"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 45, 0, -9)
mesh = ExtResource("2_jjage")
[node name="MeshInstance3D14" type="MeshInstance3D" parent="WorldFloor"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 45, 0, 0)
mesh = ExtResource("2_jjage")
[node name="MeshInstance3D15" type="MeshInstance3D" parent="WorldFloor"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 54, 0, -9)
mesh = ExtResource("2_jjage")
[node name="MeshInstance3D16" type="MeshInstance3D" parent="WorldFloor"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 54, 0, 0)
mesh = ExtResource("2_jjage")
[node name="CollisionShape3D" type="CollisionShape3D" parent="WorldFloor"]
visible = false
shape = SubResource("WorldBoundaryShape3D_6j7vt")
[node name="MedBox" type="RigidBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 1.2, -6)
2025-07-03 15:40:33 -06:00
collision_layer = 7
collision_mask = 9
2025-07-03 15:40:33 -06:00
mass = 50.0
[node name="MeshInstance3D" type="MeshInstance3D" parent="MedBox"]
mesh = SubResource("BoxMesh_252gx")
[node name="CollisionShape3D" type="CollisionShape3D" parent="MedBox"]
shape = SubResource("BoxShape3D_35l2h")
[node name="Holdable" type="Node" parent="MedBox"]
script = ExtResource("4_252gx")
hold_distance = 2.0
metadata/_custom_type_script = "uid://040xta01xqxd"
[node name="BigBox" type="RigidBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10.5, 1.8, -6)
2025-07-03 15:40:33 -06:00
collision_layer = 7
collision_mask = 9
2025-07-03 15:40:33 -06:00
mass = 500.0
[node name="MeshInstance3D" type="MeshInstance3D" parent="BigBox"]
mesh = SubResource("BoxMesh_35l2h")
[node name="CollisionShape3D" type="CollisionShape3D" parent="BigBox"]
shape = SubResource("BoxShape3D_sc5il")
[node name="Ball" type="RigidBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.2, -4.8)
collision_layer = 6
collision_mask = 9
physics_material_override = SubResource("PhysicsMaterial_35l2h")
[node name="MeshInstance3D" type="MeshInstance3D" parent="Ball"]
mesh = SubResource("SphereMesh_sc5il")
[node name="CollisionShape3D" type="CollisionShape3D" parent="Ball"]
shape = SubResource("SphereShape3D_hyy3g")
[node name="Holdable" type="Node" parent="Ball"]
script = ExtResource("4_252gx")
metadata/_custom_type_script = "uid://040xta01xqxd"