feat: fundamental movement and separation of concerns for camera and character motion
This commit is contained in:
parent
121bb0b7d6
commit
709b972f91
8 changed files with 198 additions and 20 deletions
|
|
@ -3,4 +3,4 @@
|
|||
[node name="TunnelsPlayer" type="TunnelsPlayer"]
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 0.971276, 0.237957, 0, -0.237957, 0.971276, 0, 1.20073, 1.85333)
|
||||
transform = Transform3D(-1, -6.99417e-08, 5.24489e-08, 0, 0.599946, 0.800041, -8.74227e-08, 0.800041, -0.599946, -2.38419e-07, 7.13901, -2.79085)
|
||||
|
|
|
|||
19
godot/player_character.tscn
Normal file
19
godot/player_character.tscn
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://dpda341t6ipiv"]
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_3g72p"]
|
||||
height = 1.59321
|
||||
|
||||
[sub_resource type="CapsuleMesh" id="CapsuleMesh_rwcvu"]
|
||||
height = 1.605
|
||||
|
||||
[node name="PlayerCharacter" type="PlayerCharacter"]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.802835, 0)
|
||||
shape = SubResource("CapsuleShape3D_3g72p")
|
||||
|
||||
[node name="NavigationAgent3D" type="NavigationAgent3D" parent="."]
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.8121, 0)
|
||||
mesh = SubResource("CapsuleMesh_rwcvu")
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://m36guasmi3c1"]
|
||||
[gd_scene load_steps=9 format=3 uid="uid://m36guasmi3c1"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://cqkbxe758jr7p" path="res://player.tscn" id="1_hv5rj"]
|
||||
|
||||
|
|
@ -8,6 +8,15 @@
|
|||
game_state = SubResource("GameState_k4j3x")
|
||||
player_scene = ExtResource("1_hv5rj")
|
||||
|
||||
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_s4k5k"]
|
||||
|
||||
[sub_resource type="Sky" id="Sky_oquga"]
|
||||
sky_material = SubResource("ProceduralSkyMaterial_s4k5k")
|
||||
|
||||
[sub_resource type="Environment" id="Environment_mt2l0"]
|
||||
background_mode = 2
|
||||
sky = SubResource("Sky_oquga")
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_5glbk"]
|
||||
size = Vector3(20, 0.25, 20)
|
||||
|
||||
|
|
@ -17,10 +26,17 @@ size = Vector3(20, 0.25, 20)
|
|||
[node name="Level3D" type="Level3D"]
|
||||
game_mode_prototype = SubResource("TunnelsGameMode_itn7y")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
||||
environment = SubResource("Environment_mt2l0")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="WorldEnvironment"]
|
||||
mesh = SubResource("BoxMesh_5glbk")
|
||||
skeleton = NodePath("../..")
|
||||
|
||||
[node name="StaticBody3D" type="StaticBody3D" parent="."]
|
||||
[node name="StaticBody3D" type="StaticBody3D" parent="WorldEnvironment"]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D"]
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="WorldEnvironment/StaticBody3D"]
|
||||
shape = SubResource("BoxShape3D_kacqg")
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="WorldEnvironment"]
|
||||
transform = Transform3D(0.581243, 0.357328, -0.731077, 0, 0.898426, 0.439124, 0.81373, -0.255238, 0.522204, 0, 2.44259, 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue