godot-third-person-basic-scene/player.tscn
2022-01-20 14:59:59 +01:00

29 lines
1.1 KiB
Text

[gd_scene load_steps=4 format=3 uid="uid://cs8rlcwr3gu"]
[ext_resource type="PackedScene" uid="uid://b13h30ye7lv3t" path="res://character/character.tscn" id="1_718i0"]
[ext_resource type="Script" path="res://camera.gd" id="2_1s82i"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_w6qjk"]
radius = 0.220923
height = 2.83965
[node name="player" type="CharacterBody3D"]
[node name="Mesh" type="Node3D" parent="."]
[node name="character" parent="Mesh" instance=ExtResource( "1_718i0" )]
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(0.999787, 0, 0, 0, 0.589349, 0, 0, 0, 0.371542, 0, 0.836561, 0)
shape = SubResource( "CapsuleShape3D_w6qjk" )
[node name="camera_root" type="Node3D" parent="."]
script = ExtResource( "2_1s82i" )
[node name="horizontal_root" type="Node3D" parent="camera_root"]
[node name="vertical_root" type="Node3D" parent="camera_root/horizontal_root"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.55554, 0)
[node name="Camera3D" type="Camera3D" parent="camera_root/horizontal_root/vertical_root"]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, -2.14563)