add a Player with basic movement

This commit is contained in:
2025-02-10 21:01:17 +10:00
parent e2075ec380
commit 526babbe4f
8 changed files with 247 additions and 2 deletions

22
scenes/player.tscn Normal file
View File

@@ -0,0 +1,22 @@
[gd_scene load_steps=4 format=3 uid="uid://bvleufyobery5"]
[ext_resource type="Script" path="res://scripts/player.gd" id="1_82m0t"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_wlolw"]
[sub_resource type="CapsuleMesh" id="CapsuleMesh_5kiq6"]
[node name="Player" type="CharacterBody3D"]
script = ExtResource("1_82m0t")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
shape = SubResource("CapsuleShape3D_wlolw")
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
mesh = SubResource("CapsuleMesh_5kiq6")
[node name="Camera3D" type="Camera3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.5, 0)
current = true