Bewegung: - Souls-Modus (kein Ziel): Charakter dreht sich zur Laufrichtung relativ zu camera_pivot.world_yaw; bei RMB gehalten → Strafe statt Drehung - Walk-Toggle (NumLock): RPG-Strafe-Modus mit langsamerer Geschwindigkeit - Lock-On (Ziel markiert): Spieler dreht sich smooth zum Gegner, WASD = Strafe - Ausweichrolle (Shift): rollt in Eingaberichtung (world_yaw-relativ im Souls-Modus) - Sofort-180°-Snap statt animierter Drehung bei >150° Winkelunterschied Kamera (camera_pivot.gd): - world_yaw: absolute Weltausrichtung, unabhängig von Spielerrotation (kein Feedback-Loop) - LMB gehalten: Kamera orbitet, Spieler dreht sich nicht - RMB gehalten: Spieler + Kamera drehen sich gemeinsam - Soft Lock-On: camera_pivot dreht Spieler smooth zum Ziel Animationen: - Neue FBX-Animationen: Quick Roll, Running Jump, Walking Jump, Running Strafe L/R, Running Turn 180 - Animationen im Souls-Modus: immer "run" vorwärts; S = walk_back - Root-Motion-Strip: XZ-Bewegung auf Knochen-Tracks wird genullt Welt: - Boden-Shader: Schachbrettmuster in World-Space (INV_VIEW_MATRIX) - ProceduralSkyMaterial + WorldEnvironment per Code - Alte assets/animations und assets/models durch Warrior+Animation ersetzt Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
33 lines
1.4 KiB
Text
33 lines
1.4 KiB
Text
[gd_scene format=3 uid="uid://bp0g1glxo816h"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://dniyuebl8yhtv" path="res://player.tscn" id="1_f3sb7"]
|
|
[ext_resource type="Script" uid="uid://cx56h588mfsk0" path="res://world.gd" id="1_tlwt5"]
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_fj7yv"]
|
|
size = Vector3(200, 0.5, 200)
|
|
|
|
[sub_resource type="BoxMesh" id="BoxMesh_tlwt5"]
|
|
size = Vector3(200, 0.5, 200)
|
|
|
|
[sub_resource type="NavigationMesh" id="NavigationMesh_fj7yv"]
|
|
|
|
[node name="World" type="Node3D" unique_id=2007838514]
|
|
script = ExtResource("1_tlwt5")
|
|
|
|
[node name="Boden" type="StaticBody3D" parent="." unique_id=2101916269]
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Boden" unique_id=1873339390]
|
|
shape = SubResource("BoxShape3D_fj7yv")
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="Boden" unique_id=1214783061]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 2)
|
|
mesh = SubResource("BoxMesh_tlwt5")
|
|
|
|
[node name="Player" parent="." unique_id=937297102 instance=ExtResource("1_f3sb7")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.5, 0)
|
|
|
|
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="." unique_id=1394887598]
|
|
transform = Transform3D(-45, 0, 0, 0, -45, 0, 0, 0, -45, 0, 0, 0)
|
|
|
|
[node name="NavigationRegion3D" type="NavigationRegion3D" parent="." unique_id=827244005]
|
|
navigation_mesh = SubResource("NavigationMesh_fj7yv")
|