Files
agame/player/player.tscn
T
2026-09-22 17:32:42 +08:00

56 lines
2.0 KiB
Plaintext

[gd_scene format=3 uid="uid://bekuuw153mv03"]
[ext_resource type="Script" uid="uid://f5ptp3is4agf" path="res://player/player.gd" id="1_oul6g"]
[ext_resource type="SceneReplicationConfig" uid="uid://c4ubbxjfrrs47" path="res://player/player_sync.tres" id="2_rkbax"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_rkbax"]
radius = 0.4
height = 1.8
[sub_resource type="CapsuleMesh" id="CapsuleMesh_g1dw6"]
radius = 0.4
height = 1.8
radial_segments = 24
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_yw30f"]
albedo_color = Color(0.23137255, 0.50980395, 0.9647059, 1)
roughness = 0.6
[node name="Player" type="CharacterBody3D" unique_id=869687860]
script = ExtResource("1_oul6g")
health = null
walk_speed = null
sprint_speed = null
acceleration = null
air_acceleration = null
jump_velocity = null
turn_speed = null
mouse_sensitivity = null
pitch_min_deg = null
pitch_max_deg = null
[node name="Collision" type="CollisionShape3D" parent="." unique_id=215132582]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.9, 0)
shape = SubResource("CapsuleShape3D_rkbax")
[node name="CameraRig" type="Node3D" parent="." unique_id=1774966304]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.45, 0)
[node name="SpringArm" type="SpringArm3D" parent="CameraRig" unique_id=917938711]
transform = Transform3D(1, 0, 0, 0, 0.9659257, 0.25881964, 0, -0.25881964, 0.9659257, 0, 0, 0)
spring_length = 4.0
[node name="Camera" type="Camera3D" parent="CameraRig/SpringArm" unique_id=52294557]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 4)
fov = 82.2
[node name="Body" type="Node3D" parent="." unique_id=394283421]
[node name="Mesh" type="MeshInstance3D" parent="Body" unique_id=1230094944]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.9, 0)
mesh = SubResource("CapsuleMesh_g1dw6")
surface_material_override/0 = SubResource("StandardMaterial3D_yw30f")
[node name="Sync" type="MultiplayerSynchronizer" parent="." unique_id=1979575210]
replication_config = ExtResource("2_rkbax")