trenches/godot/objects/player.tscn

51 lines
2.0 KiB
Plaintext

[gd_scene load_steps=4 format=3 uid="uid://1kr3qqan3trk"]
[ext_resource type="PackedScene" uid="uid://bnr6lab7heo8e" path="res://objects/character_model_base.tscn" id="1_cwt7u"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_ewsvd"]
radius = 0.370388
[sub_resource type="SphereShape3D" id="SphereShape3D_v7ajo"]
radius = 0.1
[node name="Player" type="Player"]
collision_layer = 3
collision_mask = 3
floor_snap_length = 0.2
[node name="CharacterModel" parent="." instance=ExtResource("1_cwt7u")]
unique_name_in_owner = true
[node name="mesh_helmet_a_001" parent="CharacterModel/skeleton_character/Skeleton3D" index="2"]
visible = false
[node name="BoneAttachment3D" parent="CharacterModel/skeleton_character/Skeleton3D" index="3"]
transform = Transform3D(-0.937186, 0.347435, 0.0311762, 0.0973187, 0.17459, 0.97982, 0.33498, 0.921308, -0.197435, -0.16719, 1.02003, 0.0528419)
[node name="HitscanMuzzle" parent="CharacterModel/skeleton_character/Skeleton3D/BoneAttachment3D" index="0"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.00234e-08, 0.0436091, 0.0479187)
[node name="PlayerInput" type="PlayerInput" parent="."]
unique_name_in_owner = true
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
shape = SubResource("CapsuleShape3D_ewsvd")
[node name="CameraParent" type="Node3D" parent="."]
unique_name_in_owner = true
top_level = true
[node name="CameraSpring" type="SpringArm3D" parent="CameraParent"]
unique_name_in_owner = true
transform = Transform3D(-0.964368, 0.00651711, -0.264483, 0.0126107, 0.999693, -0.0213483, 0.264263, -0.0239229, -0.964154, 0, 1.71904, 0)
shape = SubResource("SphereShape3D_v7ajo")
spring_length = 1.3
[node name="Camera" type="CameraEffects" parent="CameraParent/CameraSpring"]
transform = Transform3D(0.960689, 0.0368572, -0.27517, 0.00642303, 0.987932, 0.154751, 0.277554, -0.150435, 0.948859, -1.09896e-07, -8.34465e-07, 1.3)
fov = 41.9276
far = 100.0
[editable path="CharacterModel"]