From d99cd1cd69f51e03ea8c9beb22525918b9ba3506 Mon Sep 17 00:00:00 2001 From: breel Date: Sun, 17 Aug 2025 21:41:41 -0600 Subject: [PATCH] Examples/mvp-walk-with-collision @bel --- .../mvp-walk-with-collision/.editorconfig | 4 + .../mvp-walk-with-collision/.gitattributes | 2 + Examples/mvp-walk-with-collision/.gitignore | 3 + .../Entities/Characters/Movers/pedal.gd | 98 +++++++++++++++++++ .../Entities/Characters/Movers/pedal.gd.uid | 1 + .../Characters/Players/Kobolds/Baby/baby.gd | 4 + .../Players/Kobolds/Baby/baby.gd.uid | 1 + .../Characters/Players/Kobolds/kobold.gd | 1 + .../Characters/Players/Kobolds/kobold.gd.uid | 1 + .../Entities/Characters/Players/player.gd | 17 ++++ .../Entities/Characters/Players/player.gd.uid | 1 + .../Entities/Characters/character.gd | 8 ++ .../Entities/Characters/character.gd.uid | 1 + Examples/mvp-walk-with-collision/icon.svg | 1 + .../mvp-walk-with-collision/icon.svg.import | 37 +++++++ .../mvp-walk-with-collision/project.godot | 21 ++++ Examples/mvp-walk-with-collision/root.tscn | 52 ++++++++++ .../root.tscn10232847602.tmp | 48 +++++++++ .../root.tscn10241497482.tmp | 48 +++++++++ .../root.tscn5725732849.tmp | 38 +++++++ .../root.tscn5738045841.tmp | 38 +++++++ .../root.tscn5781059452.tmp | 38 +++++++ .../root.tscn5842675668.tmp | 38 +++++++ .../root.tscn6642226529.tmp | 38 +++++++ .../root.tscn6654517726.tmp | 38 +++++++ .../root.tscn6662464709.tmp | 38 +++++++ .../root.tscn6674545067.tmp | 38 +++++++ .../root.tscn6686931334.tmp | 38 +++++++ 28 files changed, 691 insertions(+) create mode 100755 Examples/mvp-walk-with-collision/.editorconfig create mode 100755 Examples/mvp-walk-with-collision/.gitattributes create mode 100755 Examples/mvp-walk-with-collision/.gitignore create mode 100755 Examples/mvp-walk-with-collision/Entities/Characters/Movers/pedal.gd create mode 100755 Examples/mvp-walk-with-collision/Entities/Characters/Movers/pedal.gd.uid create mode 100755 Examples/mvp-walk-with-collision/Entities/Characters/Players/Kobolds/Baby/baby.gd create mode 100755 Examples/mvp-walk-with-collision/Entities/Characters/Players/Kobolds/Baby/baby.gd.uid create mode 100755 Examples/mvp-walk-with-collision/Entities/Characters/Players/Kobolds/kobold.gd create mode 100755 Examples/mvp-walk-with-collision/Entities/Characters/Players/Kobolds/kobold.gd.uid create mode 100755 Examples/mvp-walk-with-collision/Entities/Characters/Players/player.gd create mode 100755 Examples/mvp-walk-with-collision/Entities/Characters/Players/player.gd.uid create mode 100755 Examples/mvp-walk-with-collision/Entities/Characters/character.gd create mode 100755 Examples/mvp-walk-with-collision/Entities/Characters/character.gd.uid create mode 100755 Examples/mvp-walk-with-collision/icon.svg create mode 100755 Examples/mvp-walk-with-collision/icon.svg.import create mode 100755 Examples/mvp-walk-with-collision/project.godot create mode 100755 Examples/mvp-walk-with-collision/root.tscn create mode 100755 Examples/mvp-walk-with-collision/root.tscn10232847602.tmp create mode 100755 Examples/mvp-walk-with-collision/root.tscn10241497482.tmp create mode 100755 Examples/mvp-walk-with-collision/root.tscn5725732849.tmp create mode 100755 Examples/mvp-walk-with-collision/root.tscn5738045841.tmp create mode 100755 Examples/mvp-walk-with-collision/root.tscn5781059452.tmp create mode 100755 Examples/mvp-walk-with-collision/root.tscn5842675668.tmp create mode 100755 Examples/mvp-walk-with-collision/root.tscn6642226529.tmp create mode 100755 Examples/mvp-walk-with-collision/root.tscn6654517726.tmp create mode 100755 Examples/mvp-walk-with-collision/root.tscn6662464709.tmp create mode 100755 Examples/mvp-walk-with-collision/root.tscn6674545067.tmp create mode 100755 Examples/mvp-walk-with-collision/root.tscn6686931334.tmp diff --git a/Examples/mvp-walk-with-collision/.editorconfig b/Examples/mvp-walk-with-collision/.editorconfig new file mode 100755 index 0000000..f28239b --- /dev/null +++ b/Examples/mvp-walk-with-collision/.editorconfig @@ -0,0 +1,4 @@ +root = true + +[*] +charset = utf-8 diff --git a/Examples/mvp-walk-with-collision/.gitattributes b/Examples/mvp-walk-with-collision/.gitattributes new file mode 100755 index 0000000..8ad74f7 --- /dev/null +++ b/Examples/mvp-walk-with-collision/.gitattributes @@ -0,0 +1,2 @@ +# Normalize EOL for all files that Git considers text files. +* text=auto eol=lf diff --git a/Examples/mvp-walk-with-collision/.gitignore b/Examples/mvp-walk-with-collision/.gitignore new file mode 100755 index 0000000..0af181c --- /dev/null +++ b/Examples/mvp-walk-with-collision/.gitignore @@ -0,0 +1,3 @@ +# Godot 4+ specific ignores +.godot/ +/android/ diff --git a/Examples/mvp-walk-with-collision/Entities/Characters/Movers/pedal.gd b/Examples/mvp-walk-with-collision/Entities/Characters/Movers/pedal.gd new file mode 100755 index 0000000..94b7e04 --- /dev/null +++ b/Examples/mvp-walk-with-collision/Entities/Characters/Movers/pedal.gd @@ -0,0 +1,98 @@ +extends Node + +var speed = 1 + +func to_move_rotate(delta: float): + var mv = Vector3.ZERO + var rot = Vector3.ZERO + for state in _states(): + var duo = _duo_for_state(delta, state) + mv += duo[0] + rot += duo[1] + return [mv, rot] + +var state_move_forward = false +var state_move_left = false +var state_move_backward = false +var state_move_right = false +var state_turn_left = false +var state_turn_right = false + +enum { + STATE_MOVING_FORWARD, + STATE_MOVING_LEFT, + STATE_MOVING_RIGHT, + STATE_MOVING_BACKWARD, + STATE_TURNING_LEFT, + STATE_TURNING_RIGHT, + STATE_IDLE +} + +func _states(): + var result = _states_moving() + _states_turning() + if result.is_empty(): + result = [STATE_IDLE] + return result + +func _states_moving(): + var moving_forward = self.state_move_forward and not self.state_move_backward + var moving_left = self.state_move_left and not self.state_move_right + var moving_right = self.state_move_right and not self.state_move_left + var moving_backward = self.state_move_backward and not self.state_move_forward + if moving_forward and moving_left: + return [STATE_MOVING_LEFT, STATE_MOVING_FORWARD] + elif moving_forward and moving_right: + return [STATE_MOVING_RIGHT, STATE_MOVING_FORWARD] + elif moving_forward: + return [STATE_MOVING_FORWARD] + elif moving_backward and moving_left: + return [STATE_MOVING_LEFT, STATE_MOVING_BACKWARD] + elif moving_backward and moving_right: + return [STATE_MOVING_RIGHT, STATE_MOVING_BACKWARD] + elif moving_backward: + return [STATE_MOVING_BACKWARD] + elif moving_left: + return [STATE_MOVING_LEFT] + elif moving_right: + return [STATE_MOVING_RIGHT] + return [] + +func _states_turning(): + if self.state_turn_left and not self.state_turn_right: + return [STATE_TURNING_LEFT] + elif self.state_turn_right and not self.state_turn_left: + return [STATE_TURNING_RIGHT] + return [] + +func _duo_for_state(delta: float, state): + var direction = Vector2.ZERO + match state: + STATE_MOVING_FORWARD: + direction.y = -1 + STATE_MOVING_BACKWARD: + direction.y = 1 + STATE_MOVING_LEFT: + direction.x = -1 + STATE_MOVING_RIGHT: + direction.x = 1 + STATE_TURNING_LEFT: + pass + rotate_object_local(Vector3.UP, speed * delta) + STATE_TURNING_RIGHT: + pass + rotate_object_local(Vector3.UP, -speed * delta) + STATE_IDLE: + pass + if direction == Vector2.ZERO: + return [Vector3.ZERO, Vector3.ZERO] + direction = direction.normalized() + + var forward = global_transform.basis.z + var right = global_transform.basis.x + var relative_direction = (forward * direction.y + right * direction.x) + + relative_direction.x *= speed + relative_direction.z *= speed + relative_direction.y = -speed + + return [relative_direction, Vector3.ZERO] diff --git a/Examples/mvp-walk-with-collision/Entities/Characters/Movers/pedal.gd.uid b/Examples/mvp-walk-with-collision/Entities/Characters/Movers/pedal.gd.uid new file mode 100755 index 0000000..fcd1c1d --- /dev/null +++ b/Examples/mvp-walk-with-collision/Entities/Characters/Movers/pedal.gd.uid @@ -0,0 +1 @@ +uid://cpe76cgad0r7d diff --git a/Examples/mvp-walk-with-collision/Entities/Characters/Players/Kobolds/Baby/baby.gd b/Examples/mvp-walk-with-collision/Entities/Characters/Players/Kobolds/Baby/baby.gd new file mode 100755 index 0000000..3d78078 --- /dev/null +++ b/Examples/mvp-walk-with-collision/Entities/Characters/Players/Kobolds/Baby/baby.gd @@ -0,0 +1,4 @@ +extends "res://Entities/Characters/Players/Kobolds/kobold.gd" + +func _ready(): + mover.speed = 3 diff --git a/Examples/mvp-walk-with-collision/Entities/Characters/Players/Kobolds/Baby/baby.gd.uid b/Examples/mvp-walk-with-collision/Entities/Characters/Players/Kobolds/Baby/baby.gd.uid new file mode 100755 index 0000000..da4af4c --- /dev/null +++ b/Examples/mvp-walk-with-collision/Entities/Characters/Players/Kobolds/Baby/baby.gd.uid @@ -0,0 +1 @@ +uid://djb32mbaia5hv diff --git a/Examples/mvp-walk-with-collision/Entities/Characters/Players/Kobolds/kobold.gd b/Examples/mvp-walk-with-collision/Entities/Characters/Players/Kobolds/kobold.gd new file mode 100755 index 0000000..25b74a2 --- /dev/null +++ b/Examples/mvp-walk-with-collision/Entities/Characters/Players/Kobolds/kobold.gd @@ -0,0 +1 @@ +extends "res://Entities/Characters/Players/player.gd" diff --git a/Examples/mvp-walk-with-collision/Entities/Characters/Players/Kobolds/kobold.gd.uid b/Examples/mvp-walk-with-collision/Entities/Characters/Players/Kobolds/kobold.gd.uid new file mode 100755 index 0000000..461e571 --- /dev/null +++ b/Examples/mvp-walk-with-collision/Entities/Characters/Players/Kobolds/kobold.gd.uid @@ -0,0 +1 @@ +uid://y7r1crnxumyx diff --git a/Examples/mvp-walk-with-collision/Entities/Characters/Players/player.gd b/Examples/mvp-walk-with-collision/Entities/Characters/Players/player.gd new file mode 100755 index 0000000..f4fe491 --- /dev/null +++ b/Examples/mvp-walk-with-collision/Entities/Characters/Players/player.gd @@ -0,0 +1,17 @@ +extends "res://Entities/Characters/character.gd" + +func _input(event): + if event is InputEventKey: + match event.keycode: + KEY_W: + self.state_move_forward = event.pressed + KEY_A: + self.state_move_left = event.pressed + KEY_S: + self.state_move_backward = event.pressed + KEY_D: + self.state_move_right = event.pressed + KEY_Q: + self.state_turn_left = event.pressed + KEY_E: + self.state_turn_right = event.pressed diff --git a/Examples/mvp-walk-with-collision/Entities/Characters/Players/player.gd.uid b/Examples/mvp-walk-with-collision/Entities/Characters/Players/player.gd.uid new file mode 100755 index 0000000..5cea21c --- /dev/null +++ b/Examples/mvp-walk-with-collision/Entities/Characters/Players/player.gd.uid @@ -0,0 +1 @@ +uid://brx1bih43d41c diff --git a/Examples/mvp-walk-with-collision/Entities/Characters/character.gd b/Examples/mvp-walk-with-collision/Entities/Characters/character.gd new file mode 100755 index 0000000..50d4509 --- /dev/null +++ b/Examples/mvp-walk-with-collision/Entities/Characters/character.gd @@ -0,0 +1,8 @@ +extends PhysicsBody3D + +var mover = new("res://Entities/Characters/Movers/pedal.gd") + +func _physics_process(delta: float): + duo = self.mover.to_move_rotate(delta) + velocity = duo[0] + move_and_slide() diff --git a/Examples/mvp-walk-with-collision/Entities/Characters/character.gd.uid b/Examples/mvp-walk-with-collision/Entities/Characters/character.gd.uid new file mode 100755 index 0000000..c21c942 --- /dev/null +++ b/Examples/mvp-walk-with-collision/Entities/Characters/character.gd.uid @@ -0,0 +1 @@ +uid://uj4hyacvqtqa diff --git a/Examples/mvp-walk-with-collision/icon.svg b/Examples/mvp-walk-with-collision/icon.svg new file mode 100755 index 0000000..9d8b7fa --- /dev/null +++ b/Examples/mvp-walk-with-collision/icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Examples/mvp-walk-with-collision/icon.svg.import b/Examples/mvp-walk-with-collision/icon.svg.import new file mode 100755 index 0000000..7ccd401 --- /dev/null +++ b/Examples/mvp-walk-with-collision/icon.svg.import @@ -0,0 +1,37 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://ba6ev60elqa6r" +path="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://icon.svg" +dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 +svg/scale=1.0 +editor/scale_with_editor_scale=false +editor/convert_colors_with_editor_theme=false diff --git a/Examples/mvp-walk-with-collision/project.godot b/Examples/mvp-walk-with-collision/project.godot new file mode 100755 index 0000000..e6ff394 --- /dev/null +++ b/Examples/mvp-walk-with-collision/project.godot @@ -0,0 +1,21 @@ +; Engine configuration file. +; It's best edited using the editor UI and not directly, +; since the parameters that go here are not all obvious. +; +; Format: +; [section] ; section goes between [] +; param=value ; assign values to parameters + +config_version=5 + +[application] + +config/name="mvp-walk-with-collision" +run/main_scene="uid://sq04wsxbebev" +config/features=PackedStringArray("4.4", "GL Compatibility") +config/icon="res://icon.svg" + +[rendering] + +renderer/rendering_method="gl_compatibility" +renderer/rendering_method.mobile="gl_compatibility" diff --git a/Examples/mvp-walk-with-collision/root.tscn b/Examples/mvp-walk-with-collision/root.tscn new file mode 100755 index 0000000..23b874a --- /dev/null +++ b/Examples/mvp-walk-with-collision/root.tscn @@ -0,0 +1,52 @@ +[gd_scene load_steps=7 format=3 uid="uid://sq04wsxbebev"] + +[ext_resource type="Script" uid="uid://djb32mbaia5hv" path="res://Entities/Characters/Players/Kobolds/Baby/baby.gd" id="1_pq8q7"] + +[sub_resource type="PlaneMesh" id="PlaneMesh_vho56"] + +[sub_resource type="BoxShape3D" id="BoxShape3D_vho56"] +size = Vector3(1, 0.0673828, 1) + +[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_pq8q7"] + +[sub_resource type="CapsuleMesh" id="CapsuleMesh_pyidc"] + +[sub_resource type="CylinderMesh" id="CylinderMesh_pq8q7"] + +[node name="Node3D" type="Node3D"] + +[node name="MeshInstance3D" type="MeshInstance3D" parent="."] +mesh = SubResource("PlaneMesh_vho56") + +[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/StaticBody3D"] +shape = SubResource("BoxShape3D_vho56") + +[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."] +transform = Transform3D(-0.502768, 0.414074, -0.758793, 0.228711, 0.910243, 0.345179, 0.833616, 0, -0.552345, -1.51365, 1.15689, -0.818533) + +[node name="DirectionalLight3D2" type="DirectionalLight3D" parent="."] +transform = Transform3D(0.609305, -0.410386, 0.678477, 0.791335, 0.369058, -0.487427, -0.0503645, 0.833894, 0.549621, 3.06633, 1.15689, 0.070383) +light_energy = 0.5 + +[node name="baby" type="CharacterBody3D" parent="."] +transform = Transform3D(0.385, 0, 0, 0, 0.385, 0, 0, 0, 0.385, 0, 0.410002, 0) +script = ExtResource("1_pq8q7") + +[node name="CollisionShape3D" type="CollisionShape3D" parent="baby"] +shape = SubResource("CapsuleShape3D_pq8q7") + +[node name="MeshInstance3D" type="MeshInstance3D" parent="baby"] +mesh = SubResource("CapsuleMesh_pyidc") + +[node name="Camera3D" type="Camera3D" parent="baby"] +transform = Transform3D(2.5974, 0, 0, 0, 2.5974, 0, 0, 0, 2.5974, 0, 0.474657, 3.218) + +[node name="MeshInstance3D2" type="MeshInstance3D" parent="baby"] +transform = Transform3D(0.262444, 0, 0, 0, -0.000405256, 0.285781, 0, -0.0723338, -0.00160111, 0.57384, 0.489256, 0) +mesh = SubResource("CylinderMesh_pq8q7") + +[node name="MeshInstance3D3" type="MeshInstance3D" parent="baby"] +transform = Transform3D(0.262444, 0, 0, 0, -0.000405256, 0.285781, 0, -0.0723338, -0.00160111, -0.585222, 0.489256, 0) +mesh = SubResource("CylinderMesh_pq8q7") diff --git a/Examples/mvp-walk-with-collision/root.tscn10232847602.tmp b/Examples/mvp-walk-with-collision/root.tscn10232847602.tmp new file mode 100755 index 0000000..f0cfb48 --- /dev/null +++ b/Examples/mvp-walk-with-collision/root.tscn10232847602.tmp @@ -0,0 +1,48 @@ +[gd_scene load_steps=7 format=3 uid="uid://sq04wsxbebev"] + +[ext_resource type="Script" uid="uid://djb32mbaia5hv" path="res://Entities/Characters/Players/Kobolds/Baby/baby.gd" id="1_pq8q7"] + +[sub_resource type="PlaneMesh" id="PlaneMesh_vho56"] + +[sub_resource type="BoxShape3D" id="BoxShape3D_vho56"] +size = Vector3(1, 0.0673828, 1) + +[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_pq8q7"] + +[sub_resource type="CapsuleMesh" id="CapsuleMesh_pyidc"] + +[sub_resource type="CylinderMesh" id="CylinderMesh_pq8q7"] + +[node name="Node3D" type="Node3D"] + +[node name="MeshInstance3D" type="MeshInstance3D" parent="."] +mesh = SubResource("PlaneMesh_vho56") + +[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/StaticBody3D"] +shape = SubResource("BoxShape3D_vho56") + +[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."] +transform = Transform3D(-0.502768, 0.414074, -0.758793, 0.228711, 0.910243, 0.345179, 0.833616, 0, -0.552345, -1.51365, 1.15689, -0.818533) + +[node name="baby" type="CharacterBody3D" parent="."] +transform = Transform3D(0.385, 0, 0, 0, 0.385, 0, 0, 0, 0.385, 0, 0.336205, 0) +script = ExtResource("1_pq8q7") + +[node name="CollisionShape3D" type="CollisionShape3D" parent="baby"] +shape = SubResource("CapsuleShape3D_pq8q7") + +[node name="MeshInstance3D" type="MeshInstance3D" parent="baby"] +mesh = SubResource("CapsuleMesh_pyidc") + +[node name="Camera3D" type="Camera3D" parent="baby"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.474657, 1.04625) + +[node name="MeshInstance3D2" type="MeshInstance3D" parent="baby"] +transform = Transform3D(0.262444, 0, 0, 0, -0.000405256, 0.285781, 0, -0.0723338, -0.00160111, 0.57384, 0.489256, 0) +mesh = SubResource("CylinderMesh_pq8q7") + +[node name="MeshInstance3D3" type="MeshInstance3D" parent="baby"] +transform = Transform3D(0.262444, 0, 0, 0, -0.000405256, 0.285781, 0, -0.0723338, -0.00160111, -0.585222, 0.489256, 0) +mesh = SubResource("CylinderMesh_pq8q7") diff --git a/Examples/mvp-walk-with-collision/root.tscn10241497482.tmp b/Examples/mvp-walk-with-collision/root.tscn10241497482.tmp new file mode 100755 index 0000000..f0cfb48 --- /dev/null +++ b/Examples/mvp-walk-with-collision/root.tscn10241497482.tmp @@ -0,0 +1,48 @@ +[gd_scene load_steps=7 format=3 uid="uid://sq04wsxbebev"] + +[ext_resource type="Script" uid="uid://djb32mbaia5hv" path="res://Entities/Characters/Players/Kobolds/Baby/baby.gd" id="1_pq8q7"] + +[sub_resource type="PlaneMesh" id="PlaneMesh_vho56"] + +[sub_resource type="BoxShape3D" id="BoxShape3D_vho56"] +size = Vector3(1, 0.0673828, 1) + +[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_pq8q7"] + +[sub_resource type="CapsuleMesh" id="CapsuleMesh_pyidc"] + +[sub_resource type="CylinderMesh" id="CylinderMesh_pq8q7"] + +[node name="Node3D" type="Node3D"] + +[node name="MeshInstance3D" type="MeshInstance3D" parent="."] +mesh = SubResource("PlaneMesh_vho56") + +[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/StaticBody3D"] +shape = SubResource("BoxShape3D_vho56") + +[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."] +transform = Transform3D(-0.502768, 0.414074, -0.758793, 0.228711, 0.910243, 0.345179, 0.833616, 0, -0.552345, -1.51365, 1.15689, -0.818533) + +[node name="baby" type="CharacterBody3D" parent="."] +transform = Transform3D(0.385, 0, 0, 0, 0.385, 0, 0, 0, 0.385, 0, 0.336205, 0) +script = ExtResource("1_pq8q7") + +[node name="CollisionShape3D" type="CollisionShape3D" parent="baby"] +shape = SubResource("CapsuleShape3D_pq8q7") + +[node name="MeshInstance3D" type="MeshInstance3D" parent="baby"] +mesh = SubResource("CapsuleMesh_pyidc") + +[node name="Camera3D" type="Camera3D" parent="baby"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.474657, 1.04625) + +[node name="MeshInstance3D2" type="MeshInstance3D" parent="baby"] +transform = Transform3D(0.262444, 0, 0, 0, -0.000405256, 0.285781, 0, -0.0723338, -0.00160111, 0.57384, 0.489256, 0) +mesh = SubResource("CylinderMesh_pq8q7") + +[node name="MeshInstance3D3" type="MeshInstance3D" parent="baby"] +transform = Transform3D(0.262444, 0, 0, 0, -0.000405256, 0.285781, 0, -0.0723338, -0.00160111, -0.585222, 0.489256, 0) +mesh = SubResource("CylinderMesh_pq8q7") diff --git a/Examples/mvp-walk-with-collision/root.tscn5725732849.tmp b/Examples/mvp-walk-with-collision/root.tscn5725732849.tmp new file mode 100755 index 0000000..d6b8872 --- /dev/null +++ b/Examples/mvp-walk-with-collision/root.tscn5725732849.tmp @@ -0,0 +1,38 @@ +[gd_scene load_steps=6 format=3 uid="uid://sq04wsxbebev"] + +[ext_resource type="Script" uid="uid://djb32mbaia5hv" path="res://Entities/Characters/Player/Kobold/Baby/baby.gd" id="1_pq8q7"] + +[sub_resource type="PlaneMesh" id="PlaneMesh_vho56"] + +[sub_resource type="BoxShape3D" id="BoxShape3D_vho56"] +size = Vector3(1, 0.0673828, 1) + +[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_pq8q7"] + +[sub_resource type="CapsuleMesh" id="CapsuleMesh_pyidc"] + +[node name="Node3D" type="Node3D"] + +[node name="MeshInstance3D" type="MeshInstance3D" parent="."] +mesh = SubResource("PlaneMesh_vho56") + +[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/StaticBody3D"] +shape = SubResource("BoxShape3D_vho56") + +[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."] +transform = Transform3D(-0.502768, 0.414074, -0.758793, 0.228711, 0.910243, 0.345179, 0.833616, 0, -0.552345, -1.51365, 1.15689, -0.818533) + +[node name="baby" type="CharacterBody3D" parent="."] +transform = Transform3D(0.385, 0, 0, 0, 0.385, 0, 0, 0, 0.385, 0, 0.336205, 0) +script = ExtResource("1_pq8q7") + +[node name="CollisionShape3D" type="CollisionShape3D" parent="baby"] +shape = SubResource("CapsuleShape3D_pq8q7") + +[node name="MeshInstance3D" type="MeshInstance3D" parent="baby"] +mesh = SubResource("CapsuleMesh_pyidc") + +[node name="Camera3D" type="Camera3D" parent="baby"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.474657, 1.04625) diff --git a/Examples/mvp-walk-with-collision/root.tscn5738045841.tmp b/Examples/mvp-walk-with-collision/root.tscn5738045841.tmp new file mode 100755 index 0000000..d6b8872 --- /dev/null +++ b/Examples/mvp-walk-with-collision/root.tscn5738045841.tmp @@ -0,0 +1,38 @@ +[gd_scene load_steps=6 format=3 uid="uid://sq04wsxbebev"] + +[ext_resource type="Script" uid="uid://djb32mbaia5hv" path="res://Entities/Characters/Player/Kobold/Baby/baby.gd" id="1_pq8q7"] + +[sub_resource type="PlaneMesh" id="PlaneMesh_vho56"] + +[sub_resource type="BoxShape3D" id="BoxShape3D_vho56"] +size = Vector3(1, 0.0673828, 1) + +[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_pq8q7"] + +[sub_resource type="CapsuleMesh" id="CapsuleMesh_pyidc"] + +[node name="Node3D" type="Node3D"] + +[node name="MeshInstance3D" type="MeshInstance3D" parent="."] +mesh = SubResource("PlaneMesh_vho56") + +[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/StaticBody3D"] +shape = SubResource("BoxShape3D_vho56") + +[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."] +transform = Transform3D(-0.502768, 0.414074, -0.758793, 0.228711, 0.910243, 0.345179, 0.833616, 0, -0.552345, -1.51365, 1.15689, -0.818533) + +[node name="baby" type="CharacterBody3D" parent="."] +transform = Transform3D(0.385, 0, 0, 0, 0.385, 0, 0, 0, 0.385, 0, 0.336205, 0) +script = ExtResource("1_pq8q7") + +[node name="CollisionShape3D" type="CollisionShape3D" parent="baby"] +shape = SubResource("CapsuleShape3D_pq8q7") + +[node name="MeshInstance3D" type="MeshInstance3D" parent="baby"] +mesh = SubResource("CapsuleMesh_pyidc") + +[node name="Camera3D" type="Camera3D" parent="baby"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.474657, 1.04625) diff --git a/Examples/mvp-walk-with-collision/root.tscn5781059452.tmp b/Examples/mvp-walk-with-collision/root.tscn5781059452.tmp new file mode 100755 index 0000000..d6b8872 --- /dev/null +++ b/Examples/mvp-walk-with-collision/root.tscn5781059452.tmp @@ -0,0 +1,38 @@ +[gd_scene load_steps=6 format=3 uid="uid://sq04wsxbebev"] + +[ext_resource type="Script" uid="uid://djb32mbaia5hv" path="res://Entities/Characters/Player/Kobold/Baby/baby.gd" id="1_pq8q7"] + +[sub_resource type="PlaneMesh" id="PlaneMesh_vho56"] + +[sub_resource type="BoxShape3D" id="BoxShape3D_vho56"] +size = Vector3(1, 0.0673828, 1) + +[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_pq8q7"] + +[sub_resource type="CapsuleMesh" id="CapsuleMesh_pyidc"] + +[node name="Node3D" type="Node3D"] + +[node name="MeshInstance3D" type="MeshInstance3D" parent="."] +mesh = SubResource("PlaneMesh_vho56") + +[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/StaticBody3D"] +shape = SubResource("BoxShape3D_vho56") + +[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."] +transform = Transform3D(-0.502768, 0.414074, -0.758793, 0.228711, 0.910243, 0.345179, 0.833616, 0, -0.552345, -1.51365, 1.15689, -0.818533) + +[node name="baby" type="CharacterBody3D" parent="."] +transform = Transform3D(0.385, 0, 0, 0, 0.385, 0, 0, 0, 0.385, 0, 0.336205, 0) +script = ExtResource("1_pq8q7") + +[node name="CollisionShape3D" type="CollisionShape3D" parent="baby"] +shape = SubResource("CapsuleShape3D_pq8q7") + +[node name="MeshInstance3D" type="MeshInstance3D" parent="baby"] +mesh = SubResource("CapsuleMesh_pyidc") + +[node name="Camera3D" type="Camera3D" parent="baby"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.474657, 1.04625) diff --git a/Examples/mvp-walk-with-collision/root.tscn5842675668.tmp b/Examples/mvp-walk-with-collision/root.tscn5842675668.tmp new file mode 100755 index 0000000..68275aa --- /dev/null +++ b/Examples/mvp-walk-with-collision/root.tscn5842675668.tmp @@ -0,0 +1,38 @@ +[gd_scene load_steps=6 format=3 uid="uid://sq04wsxbebev"] + +[ext_resource type="Script" uid="uid://djb32mbaia5hv" path="res://Entities/Characters/Players/Kobolds/Baby/baby.gd" id="1_pq8q7"] + +[sub_resource type="PlaneMesh" id="PlaneMesh_vho56"] + +[sub_resource type="BoxShape3D" id="BoxShape3D_vho56"] +size = Vector3(1, 0.0673828, 1) + +[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_pq8q7"] + +[sub_resource type="CapsuleMesh" id="CapsuleMesh_pyidc"] + +[node name="Node3D" type="Node3D"] + +[node name="MeshInstance3D" type="MeshInstance3D" parent="."] +mesh = SubResource("PlaneMesh_vho56") + +[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/StaticBody3D"] +shape = SubResource("BoxShape3D_vho56") + +[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."] +transform = Transform3D(-0.502768, 0.414074, -0.758793, 0.228711, 0.910243, 0.345179, 0.833616, 0, -0.552345, -1.51365, 1.15689, -0.818533) + +[node name="baby" type="CharacterBody3D" parent="."] +transform = Transform3D(0.385, 0, 0, 0, 0.385, 0, 0, 0, 0.385, 0, 0.336205, 0) +script = ExtResource("1_pq8q7") + +[node name="CollisionShape3D" type="CollisionShape3D" parent="baby"] +shape = SubResource("CapsuleShape3D_pq8q7") + +[node name="MeshInstance3D" type="MeshInstance3D" parent="baby"] +mesh = SubResource("CapsuleMesh_pyidc") + +[node name="Camera3D" type="Camera3D" parent="baby"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.474657, 1.04625) diff --git a/Examples/mvp-walk-with-collision/root.tscn6642226529.tmp b/Examples/mvp-walk-with-collision/root.tscn6642226529.tmp new file mode 100755 index 0000000..68275aa --- /dev/null +++ b/Examples/mvp-walk-with-collision/root.tscn6642226529.tmp @@ -0,0 +1,38 @@ +[gd_scene load_steps=6 format=3 uid="uid://sq04wsxbebev"] + +[ext_resource type="Script" uid="uid://djb32mbaia5hv" path="res://Entities/Characters/Players/Kobolds/Baby/baby.gd" id="1_pq8q7"] + +[sub_resource type="PlaneMesh" id="PlaneMesh_vho56"] + +[sub_resource type="BoxShape3D" id="BoxShape3D_vho56"] +size = Vector3(1, 0.0673828, 1) + +[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_pq8q7"] + +[sub_resource type="CapsuleMesh" id="CapsuleMesh_pyidc"] + +[node name="Node3D" type="Node3D"] + +[node name="MeshInstance3D" type="MeshInstance3D" parent="."] +mesh = SubResource("PlaneMesh_vho56") + +[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/StaticBody3D"] +shape = SubResource("BoxShape3D_vho56") + +[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."] +transform = Transform3D(-0.502768, 0.414074, -0.758793, 0.228711, 0.910243, 0.345179, 0.833616, 0, -0.552345, -1.51365, 1.15689, -0.818533) + +[node name="baby" type="CharacterBody3D" parent="."] +transform = Transform3D(0.385, 0, 0, 0, 0.385, 0, 0, 0, 0.385, 0, 0.336205, 0) +script = ExtResource("1_pq8q7") + +[node name="CollisionShape3D" type="CollisionShape3D" parent="baby"] +shape = SubResource("CapsuleShape3D_pq8q7") + +[node name="MeshInstance3D" type="MeshInstance3D" parent="baby"] +mesh = SubResource("CapsuleMesh_pyidc") + +[node name="Camera3D" type="Camera3D" parent="baby"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.474657, 1.04625) diff --git a/Examples/mvp-walk-with-collision/root.tscn6654517726.tmp b/Examples/mvp-walk-with-collision/root.tscn6654517726.tmp new file mode 100755 index 0000000..68275aa --- /dev/null +++ b/Examples/mvp-walk-with-collision/root.tscn6654517726.tmp @@ -0,0 +1,38 @@ +[gd_scene load_steps=6 format=3 uid="uid://sq04wsxbebev"] + +[ext_resource type="Script" uid="uid://djb32mbaia5hv" path="res://Entities/Characters/Players/Kobolds/Baby/baby.gd" id="1_pq8q7"] + +[sub_resource type="PlaneMesh" id="PlaneMesh_vho56"] + +[sub_resource type="BoxShape3D" id="BoxShape3D_vho56"] +size = Vector3(1, 0.0673828, 1) + +[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_pq8q7"] + +[sub_resource type="CapsuleMesh" id="CapsuleMesh_pyidc"] + +[node name="Node3D" type="Node3D"] + +[node name="MeshInstance3D" type="MeshInstance3D" parent="."] +mesh = SubResource("PlaneMesh_vho56") + +[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/StaticBody3D"] +shape = SubResource("BoxShape3D_vho56") + +[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."] +transform = Transform3D(-0.502768, 0.414074, -0.758793, 0.228711, 0.910243, 0.345179, 0.833616, 0, -0.552345, -1.51365, 1.15689, -0.818533) + +[node name="baby" type="CharacterBody3D" parent="."] +transform = Transform3D(0.385, 0, 0, 0, 0.385, 0, 0, 0, 0.385, 0, 0.336205, 0) +script = ExtResource("1_pq8q7") + +[node name="CollisionShape3D" type="CollisionShape3D" parent="baby"] +shape = SubResource("CapsuleShape3D_pq8q7") + +[node name="MeshInstance3D" type="MeshInstance3D" parent="baby"] +mesh = SubResource("CapsuleMesh_pyidc") + +[node name="Camera3D" type="Camera3D" parent="baby"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.474657, 1.04625) diff --git a/Examples/mvp-walk-with-collision/root.tscn6662464709.tmp b/Examples/mvp-walk-with-collision/root.tscn6662464709.tmp new file mode 100755 index 0000000..68275aa --- /dev/null +++ b/Examples/mvp-walk-with-collision/root.tscn6662464709.tmp @@ -0,0 +1,38 @@ +[gd_scene load_steps=6 format=3 uid="uid://sq04wsxbebev"] + +[ext_resource type="Script" uid="uid://djb32mbaia5hv" path="res://Entities/Characters/Players/Kobolds/Baby/baby.gd" id="1_pq8q7"] + +[sub_resource type="PlaneMesh" id="PlaneMesh_vho56"] + +[sub_resource type="BoxShape3D" id="BoxShape3D_vho56"] +size = Vector3(1, 0.0673828, 1) + +[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_pq8q7"] + +[sub_resource type="CapsuleMesh" id="CapsuleMesh_pyidc"] + +[node name="Node3D" type="Node3D"] + +[node name="MeshInstance3D" type="MeshInstance3D" parent="."] +mesh = SubResource("PlaneMesh_vho56") + +[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/StaticBody3D"] +shape = SubResource("BoxShape3D_vho56") + +[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."] +transform = Transform3D(-0.502768, 0.414074, -0.758793, 0.228711, 0.910243, 0.345179, 0.833616, 0, -0.552345, -1.51365, 1.15689, -0.818533) + +[node name="baby" type="CharacterBody3D" parent="."] +transform = Transform3D(0.385, 0, 0, 0, 0.385, 0, 0, 0, 0.385, 0, 0.336205, 0) +script = ExtResource("1_pq8q7") + +[node name="CollisionShape3D" type="CollisionShape3D" parent="baby"] +shape = SubResource("CapsuleShape3D_pq8q7") + +[node name="MeshInstance3D" type="MeshInstance3D" parent="baby"] +mesh = SubResource("CapsuleMesh_pyidc") + +[node name="Camera3D" type="Camera3D" parent="baby"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.474657, 1.04625) diff --git a/Examples/mvp-walk-with-collision/root.tscn6674545067.tmp b/Examples/mvp-walk-with-collision/root.tscn6674545067.tmp new file mode 100755 index 0000000..68275aa --- /dev/null +++ b/Examples/mvp-walk-with-collision/root.tscn6674545067.tmp @@ -0,0 +1,38 @@ +[gd_scene load_steps=6 format=3 uid="uid://sq04wsxbebev"] + +[ext_resource type="Script" uid="uid://djb32mbaia5hv" path="res://Entities/Characters/Players/Kobolds/Baby/baby.gd" id="1_pq8q7"] + +[sub_resource type="PlaneMesh" id="PlaneMesh_vho56"] + +[sub_resource type="BoxShape3D" id="BoxShape3D_vho56"] +size = Vector3(1, 0.0673828, 1) + +[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_pq8q7"] + +[sub_resource type="CapsuleMesh" id="CapsuleMesh_pyidc"] + +[node name="Node3D" type="Node3D"] + +[node name="MeshInstance3D" type="MeshInstance3D" parent="."] +mesh = SubResource("PlaneMesh_vho56") + +[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/StaticBody3D"] +shape = SubResource("BoxShape3D_vho56") + +[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."] +transform = Transform3D(-0.502768, 0.414074, -0.758793, 0.228711, 0.910243, 0.345179, 0.833616, 0, -0.552345, -1.51365, 1.15689, -0.818533) + +[node name="baby" type="CharacterBody3D" parent="."] +transform = Transform3D(0.385, 0, 0, 0, 0.385, 0, 0, 0, 0.385, 0, 0.336205, 0) +script = ExtResource("1_pq8q7") + +[node name="CollisionShape3D" type="CollisionShape3D" parent="baby"] +shape = SubResource("CapsuleShape3D_pq8q7") + +[node name="MeshInstance3D" type="MeshInstance3D" parent="baby"] +mesh = SubResource("CapsuleMesh_pyidc") + +[node name="Camera3D" type="Camera3D" parent="baby"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.474657, 1.04625) diff --git a/Examples/mvp-walk-with-collision/root.tscn6686931334.tmp b/Examples/mvp-walk-with-collision/root.tscn6686931334.tmp new file mode 100755 index 0000000..68275aa --- /dev/null +++ b/Examples/mvp-walk-with-collision/root.tscn6686931334.tmp @@ -0,0 +1,38 @@ +[gd_scene load_steps=6 format=3 uid="uid://sq04wsxbebev"] + +[ext_resource type="Script" uid="uid://djb32mbaia5hv" path="res://Entities/Characters/Players/Kobolds/Baby/baby.gd" id="1_pq8q7"] + +[sub_resource type="PlaneMesh" id="PlaneMesh_vho56"] + +[sub_resource type="BoxShape3D" id="BoxShape3D_vho56"] +size = Vector3(1, 0.0673828, 1) + +[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_pq8q7"] + +[sub_resource type="CapsuleMesh" id="CapsuleMesh_pyidc"] + +[node name="Node3D" type="Node3D"] + +[node name="MeshInstance3D" type="MeshInstance3D" parent="."] +mesh = SubResource("PlaneMesh_vho56") + +[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/StaticBody3D"] +shape = SubResource("BoxShape3D_vho56") + +[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."] +transform = Transform3D(-0.502768, 0.414074, -0.758793, 0.228711, 0.910243, 0.345179, 0.833616, 0, -0.552345, -1.51365, 1.15689, -0.818533) + +[node name="baby" type="CharacterBody3D" parent="."] +transform = Transform3D(0.385, 0, 0, 0, 0.385, 0, 0, 0, 0.385, 0, 0.336205, 0) +script = ExtResource("1_pq8q7") + +[node name="CollisionShape3D" type="CollisionShape3D" parent="baby"] +shape = SubResource("CapsuleShape3D_pq8q7") + +[node name="MeshInstance3D" type="MeshInstance3D" parent="baby"] +mesh = SubResource("CapsuleMesh_pyidc") + +[node name="Camera3D" type="Camera3D" parent="baby"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.474657, 1.04625)