add a Player with basic movement
This commit is contained in:
22
scenes/player.tscn
Normal file
22
scenes/player.tscn
Normal 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
|
||||
Reference in New Issue
Block a user