Персонаж: модель киберниндзя со скелетом вместо капсул

- player/character/character.glb: 752 треугольника, 17 костей, 14 анимаций
  (idle, walk, run, crouch, slide, jump, fall, air_jump, dash, wallrun L/R,
  mantle, death); ноги на IK, исходник и скрипт сборки в Blender models
- Ghost: выбор анимации по флагам и скорости, подгонка speed_scale,
  голова повторяет взгляд, свечение красится в цвет игрока от его id
- Net: флаги FLAG_WALL_RIGHT и FLAG_AIR (RPC не менялись, сервер
  перевыкладывать не нужно)
- Игрок: капсула в player.tscn заменена моделью, спрятанной от своей камеры
- Модель в ghost.gd грузится через load, чтобы не ломать сервер без неё

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WxZo3ekR5m1af437Qzqwc1
This commit is contained in:
2026-10-28 13:11:23 +05:00
co-authored by Claude Sonnet 5.5
parent ace7ed5c84
commit b8282b1438
7 changed files with 186 additions and 47 deletions
+3 -6
View File
@@ -1,15 +1,12 @@
[gd_scene format=3 uid="uid://c3efk6k8xnf57"]
[ext_resource type="Script" uid="uid://c22hclit1affa" path="res://player/player.gd" id="1_iwpo4"]
[ext_resource type="PackedScene" uid="uid://d1vpt63d58k7j" path="res://player/character/character.glb" id="2_model"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_h8axm"]
radius = 0.35205078
height = 2.3198242
[sub_resource type="CapsuleMesh" id="CapsuleMesh_bcw3a"]
radius = 0.34472656
height = 2.3242188
[node name="CharacterBody3D" type="CharacterBody3D" unique_id=365865796]
script = ExtResource("1_iwpo4")
@@ -21,5 +18,5 @@ debug_color = Color(0, 0.6, 0.69803923, 1)
transform = Transform3D(1, 0, -1.7484555e-07, 0, 1, 0, 1.7484555e-07, 0, 1, 0, 0.9, 0)
fov = 59.9
[node name="MeshInstance3D" type="MeshInstance3D" parent="." unique_id=81801455]
mesh = SubResource("CapsuleMesh_bcw3a")
[node name="Model" parent="." unique_id=81801455 instance=ExtResource("2_model")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1.16, 0)