Physics Tests
This commit is contained in:
parent
c483a438c7
commit
97ac75c936
10 changed files with 69 additions and 56 deletions
|
@ -16,3 +16,4 @@ mesh = SubResource("CapsuleMesh_yly5q")
|
|||
shape = SubResource("CapsuleShape3D_7frjr")
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://cbyee7drds7qu"]
|
||||
[gd_scene load_steps=4 format=3 uid="uid://cbyee7drds7qu"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/maps/map.gd" id="1_4npcs"]
|
||||
[ext_resource type="PackedScene" uid="uid://bsghm187n6ykx" path="res://scenes/objects/closet.tscn" id="2_yvpvm"]
|
||||
|
||||
[sub_resource type="Environment" id="Environment_pq0iv"]
|
||||
|
||||
[node name="Testmap" type="Node3D"]
|
||||
script = ExtResource("1_4npcs")
|
||||
|
@ -20,9 +23,11 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 16, 4, 0)
|
|||
[node name="2" type="Node3D" parent="PlayerSpawn"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, 15)
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="."]
|
||||
transform = Transform3D(0.707107, -0.353553, 0.612372, 0, 0.866025, 0.5, -0.707107, -0.353553, 0.612372, 43, 20, 43)
|
||||
current = true
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(-0.965926, 0.258819, 0, -0.224144, -0.836516, 0.5, 0.12941, 0.482963, 0.866025, 0, 0, 0)
|
||||
transform = Transform3D(-0.899519, 0.375, 0.224144, -0.224144, -0.836516, 0.5, 0.375, 0.399519, 0.836516, 0, 0, 0)
|
||||
|
||||
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
||||
environment = SubResource("Environment_pq0iv")
|
||||
|
||||
[node name="Closet" parent="." instance=ExtResource("2_yvpvm")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2, 10, 2)
|
||||
|
|
15
scenes/objects/closet.tscn
Normal file
15
scenes/objects/closet.tscn
Normal file
|
@ -0,0 +1,15 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://bsghm187n6ykx"]
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_qilbd"]
|
||||
size = Vector3(1, 2, 1)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_by26a"]
|
||||
size = Vector3(1, 2, 1)
|
||||
|
||||
[node name="Closet" type="RigidBody3D"]
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
mesh = SubResource("BoxMesh_qilbd")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
shape = SubResource("BoxShape3D_by26a")
|
Loading…
Add table
Add a link
Reference in a new issue