adding a 3d version of lesson material

This commit is contained in:
OddlyTimbot committed 2025-06-30 14:24:48 -04:00
1 parent 4a8ebaf40d
commit 674677e617
13 files changed
+215 -32

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
[gd_scene load_steps=4 format=3 uid="uid://c43nh4oilmrsg"]
[ext_resource type="Script" uid="uid://b30inwwjypbrl" path="res://scripts/bullet.gd" id="1_mkf8s"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_y25gk"]
[sub_resource type="CapsuleMesh" id="CapsuleMesh_mkf8s"]
[node name="Bullet" type="Area3D"]
transform = Transform3D(0.2, 0, 0, 0, 0.2, 0, 0, 0, 0.2, 0, 0, 0)
script = ExtResource("1_mkf8s")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(0.0105416, 0.999944, 0, -0.999944, 0.0105416, 0, 0, 0, 1, 0, 0, 0)
shape = SubResource("CapsuleShape3D_y25gk")
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
transform = Transform3D(0.00249584, 0.999997, 0, -0.999997, 0.00249584, 0, 0, 0, 1, 0, 0, 0)
mesh = SubResource("CapsuleMesh_mkf8s")
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
+5 -2
View File
@@ -1,11 +1,14 @@
[gd_scene load_steps=3 format=3 uid="uid://50e6ihpajc71"]
[gd_scene load_steps=4 format=3 uid="uid://50e6ihpajc71"]
[ext_resource type="Script" uid="uid://bspjn3hydupee" path="res://scripts/crate.gd" id="1_b66cd"]
[sub_resource type="BoxShape3D" id="BoxShape3D_uwrxv"]
[sub_resource type="BoxMesh" id="BoxMesh_yqjtg"]
[node name="RigidBody3D" type="RigidBody3D"]
[node name="Crate" type="RigidBody3D"]
transform = Transform3D(0.809222, 0.587503, 0, -0.587503, 0.809222, 0, 0, 0, 1, 0, 0, 0)
script = ExtResource("1_b66cd")
metadata/_edit_group_ = true
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
+24 -20
View File
@@ -1,9 +1,10 @@
[gd_scene load_steps=12 format=3 uid="uid://d35inb2m6x8t2"]
[gd_scene load_steps=11 format=3 uid="uid://d35inb2m6x8t2"]
[ext_resource type="Script" uid="uid://0p7ncwmk6d86" path="res://scripts/gamecontroller.gd" id="1_lbhrr"]
[ext_resource type="PackedScene" uid="uid://50e6ihpajc71" path="res://scenes/crate.tscn" id="1_lnu2h"]
[ext_resource type="Script" uid="uid://bqp5ks7j080sc" path="res://scripts/character_body_3d.gd" id="2_yqjtg"]
[ext_resource type="Script" uid="uid://cj0hc3gbvehgf" path="res://scripts/SceneManager.gd" id="2_p57ef"]
[ext_resource type="PackedScene" uid="uid://dg7tfjcefup1a" path="res://scenes/trigger.tscn" id="3_iywne"]
[ext_resource type="PackedScene" uid="uid://ctsjljm7dv6us" path="res://scenes/player.tscn" id="4_iywne"]
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_8cj0n"]
sky_horizon_color = Color(0.662243, 0.671743, 0.686743, 1)
@@ -24,13 +25,13 @@ size = Vector3(6, 1, 1)
[sub_resource type="BoxMesh" id="BoxMesh_8cj0n"]
size = Vector3(6, 1, 1)
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_lnu2h"]
[sub_resource type="CapsuleMesh" id="CapsuleMesh_lbhrr"]
[node name="Node3D" type="Node3D"]
script = ExtResource("1_lbhrr")
[node name="SceneManager" type="Node" parent="."]
unique_name_in_owner = true
script = ExtResource("2_p57ef")
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_yqjtg")
@@ -48,27 +49,30 @@ debug_color = Color(0.892607, 0.253495, 0.511318, 0.42)
[node name="MeshInstance3D" type="MeshInstance3D" parent="StaticBody3D"]
mesh = SubResource("BoxMesh_8cj0n")
[node name="StaticBody3D2" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 7.22537, 1.49153, 0)
metadata/_edit_group_ = true
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D2"]
shape = SubResource("BoxShape3D_8cj0n")
debug_color = Color(0.892607, 0.253495, 0.511318, 0.42)
[node name="MeshInstance3D" type="MeshInstance3D" parent="StaticBody3D2"]
mesh = SubResource("BoxMesh_8cj0n")
[node name="Camera3D" type="Camera3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 0.957662, 0.287895, 0, -0.287895, 0.957662, 0, 0.811349, 8.59259)
[node name="RigidBody3D" parent="." instance=ExtResource("1_lnu2h")]
transform = Transform3D(0.809222, 0.587503, 0, -0.587503, 0.809222, 0, 0, 0, 1, -2.71974, 1.74283, 0.0672417)
[node name="RigidBody3D2" parent="." instance=ExtResource("1_lnu2h")]
transform = Transform3D(0.809222, 0.587503, 0, -0.587503, 0.809222, 0, 0, 0, 1, -0.761535, 3.57451, 0.0672417)
[node name="Area3D" parent="." instance=ExtResource("3_iywne")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.49989, -1.52771, 0)
[node name="CharacterBody3D" type="CharacterBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.989455, 1.55096, 0)
script = ExtResource("2_yqjtg")
metadata/_edit_group_ = true
[node name="player" parent="." instance=ExtResource("4_iywne")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.221856, 1.55096, 0)
[node name="CollisionShape3D" type="CollisionShape3D" parent="CharacterBody3D"]
shape = SubResource("CapsuleShape3D_lnu2h")
[node name="Crate" parent="." instance=ExtResource("1_lnu2h")]
transform = Transform3D(0.809222, 0.587503, 0, -0.587503, 0.809222, 0, 0, 0, 1, -1.88754, 2.3762, 0)
[node name="MeshInstance3D" type="MeshInstance3D" parent="CharacterBody3D"]
mesh = SubResource("CapsuleMesh_lbhrr")
[node name="Crate2" parent="." instance=ExtResource("1_lnu2h")]
transform = Transform3D(0.809222, 0.587503, 0, -0.587503, 0.809222, 0, 0, 0, 1, 2.31779, 2.3762, 0)
[connection signal="onAreaEntered" from="Area3D" to="." method="onAreaEntered"]
+30
View File
@@ -0,0 +1,30 @@
[gd_scene load_steps=4 format=3 uid="uid://ctsjljm7dv6us"]
[ext_resource type="Script" uid="uid://bqp5ks7j080sc" path="res://scripts/character_body_3d.gd" id="1_3vyb7"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_lnu2h"]
[sub_resource type="CapsuleMesh" id="CapsuleMesh_lbhrr"]
[node name="CharacterBody3D" type="CharacterBody3D"]
script = ExtResource("1_3vyb7")
metadata/_edit_group_ = true
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
visible = false
shape = SubResource("CapsuleShape3D_lnu2h")
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
mesh = SubResource("CapsuleMesh_lbhrr")
[node name="RightTarget" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.809181, 0, 0)
[node name="LeftTarget" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.813077, 0, 0)
[node name="RightCast" type="RayCast3D" parent="."]
transform = Transform3D(0.00829023, -0.999966, 0, 0.999966, 0.00829023, 0, 0, 0, 1, 0, -0.312465, 0)
[node name="LeftCast" type="RayCast3D" parent="."]
transform = Transform3D(-0.00111711, 0.999999, 0, -0.999999, -0.00111711, 0, 0, 0, 1, 0, -0.312465, 0)