Examples/mvp-walk-with-collision @bel
parent
9d2db4edda
commit
d99cd1cd69
|
|
@ -0,0 +1,4 @@
|
||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
charset = utf-8
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
# Normalize EOL for all files that Git considers text files.
|
||||||
|
* text=auto eol=lf
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
# Godot 4+ specific ignores
|
||||||
|
.godot/
|
||||||
|
/android/
|
||||||
|
|
@ -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]
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
uid://cpe76cgad0r7d
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
extends "res://Entities/Characters/Players/Kobolds/kobold.gd"
|
||||||
|
|
||||||
|
func _ready():
|
||||||
|
mover.speed = 3
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
uid://djb32mbaia5hv
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
extends "res://Entities/Characters/Players/player.gd"
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
uid://y7r1crnxumyx
|
||||||
|
|
@ -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
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
uid://brx1bih43d41c
|
||||||
|
|
@ -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()
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
uid://uj4hyacvqtqa
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128"><rect width="124" height="124" x="2" y="2" fill="#363d52" stroke="#212532" stroke-width="4" rx="14"/><g fill="#fff" transform="translate(12.322 12.322)scale(.101)"><path d="M105 673v33q407 354 814 0v-33z"/><path fill="#478cbf" d="m105 673 152 14q12 1 15 14l4 67 132 10 8-61q2-11 15-15h162q13 4 15 15l8 61 132-10 4-67q3-13 15-14l152-14V427q30-39 56-81-35-59-83-108-43 20-82 47-40-37-88-64 7-51 8-102-59-28-123-42-26 43-46 89-49-7-98 0-20-46-46-89-64 14-123 42 1 51 8 102-48 27-88 64-39-27-82-47-48 49-83 108 26 42 56 81zm0 33v39c0 276 813 276 814 0v-39l-134 12-5 69q-2 10-14 13l-162 11q-12 0-16-11l-10-65H446l-10 65q-4 11-16 11l-162-11q-12-3-14-13l-5-69z"/><path d="M483 600c0 34 58 34 58 0v-86c0-34-58-34-58 0z"/><circle cx="725" cy="526" r="90"/><circle cx="299" cy="526" r="90"/></g><g fill="#414042" transform="translate(12.322 12.322)scale(.101)"><circle cx="307" cy="532" r="60"/><circle cx="717" cy="532" r="60"/></g></svg>
|
||||||
|
After Width: | Height: | Size: 994 B |
|
|
@ -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
|
||||||
|
|
@ -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"
|
||||||
|
|
@ -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")
|
||||||
|
|
@ -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")
|
||||||
|
|
@ -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")
|
||||||
|
|
@ -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)
|
||||||
|
|
@ -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)
|
||||||
|
|
@ -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)
|
||||||
|
|
@ -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)
|
||||||
|
|
@ -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)
|
||||||
|
|
@ -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)
|
||||||
|
|
@ -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)
|
||||||
|
|
@ -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)
|
||||||
|
|
@ -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)
|
||||||
Loading…
Reference in New Issue