Add idle anim

This commit is contained in:
WiseNoodle
2025-08-12 23:18:41 -04:00
parent 3700789497
commit 732cd2c976
5 changed files with 1841 additions and 50 deletions

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=10 format=3 uid="uid://csmfxg011xisf"] [gd_scene load_steps=7 format=3 uid="uid://csmfxg011xisf"]
[ext_resource type="Script" uid="uid://dopyfulbw2mx5" path="res://player/player.gd" id="1_ulp21"] [ext_resource type="Script" uid="uid://dopyfulbw2mx5" path="res://player/player.gd" id="1_ulp21"]
[ext_resource type="PackedScene" uid="uid://caons6q8u2qt2" path="res://player/player.blend" id="2_3c3w1"] [ext_resource type="PackedScene" uid="uid://caons6q8u2qt2" path="res://player/player.blend" id="2_3c3w1"]
@@ -9,15 +9,6 @@
radius = 0.153372 radius = 0.153372
height = 1.37733 height = 1.37733
[sub_resource type="CapsuleMesh" id="CapsuleMesh_ulp21"]
radius = 0.3
height = 1.5
[sub_resource type="PrismMesh" id="PrismMesh_3c3w1"]
size = Vector3(0.5, 0.5, 0.5)
[sub_resource type="SphereMesh" id="SphereMesh_wnvi2"]
[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_ulp21"] [sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_ulp21"]
properties/0/path = NodePath(".:position") properties/0/path = NodePath(".:position")
properties/0/spawn = true properties/0/spawn = true
@@ -39,7 +30,7 @@ script = ExtResource("1_ulp21")
camera = NodePath("Neck/Camera3D") camera = NodePath("Neck/Camera3D")
neck = NodePath("Neck") neck = NodePath("Neck")
body = NodePath("Mesh") body = NodePath("Mesh")
head = NodePath("Neck/head") head = NodePath("Neck/HeadBoneAttachment3D/head")
[node name="Neck" type="Node3D" parent="."] [node name="Neck" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.297908, 0) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.297908, 0)
@@ -47,40 +38,19 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.297908, 0)
[node name="Camera3D" type="Camera3D" parent="Neck"] [node name="Camera3D" type="Camera3D" parent="Neck"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.144889, 0) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.144889, 0)
[node name="head" parent="Neck" instance=ExtResource("3_wnvi2")] [node name="HeadBoneAttachment3D" type="BoneAttachment3D" parent="Neck"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.222076, 0) transform = Transform3D(0.999957, -0.00924872, -1.57867e-05, 0.00924357, 0.999341, 0.0351095, -0.000308941, -0.0351081, 0.999383, 0.00185205, -0.0474322, -0.00131971)
bone_name = "HeadBone.002"
bone_idx = 8
use_external_skeleton = true
external_skeleton = NodePath("../../Mesh/Armature/Skeleton3D")
[node name="head" parent="Neck/HeadBoneAttachment3D" instance=ExtResource("3_wnvi2")]
transform = Transform3D(0.999899, 0.014218, -6.68899e-05, -0.0142179, 0.999899, 0.000213697, 6.99214e-05, -0.000212723, 1, 0.00483739, 0.27284, -0.0187194)
[node name="CollisionShape3D" type="CollisionShape3D" parent="."] [node name="CollisionShape3D" type="CollisionShape3D" parent="."]
shape = SubResource("CapsuleShape3D_ehsmr") shape = SubResource("CapsuleShape3D_ehsmr")
[node name="Bean" type="Node3D" parent="."]
transform = Transform3D(-1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, 0, 0, 0)
visible = false
[node name="MeshInstance3D" type="MeshInstance3D" parent="Bean"]
transform = Transform3D(1, 0, 0, 0, 0.89961, 0, 0, 0, 1, 0, -0.318288, 0)
layers = 2
mesh = SubResource("CapsuleMesh_ulp21")
skeleton = NodePath("../..")
[node name="MeshInstance3D2" type="MeshInstance3D" parent="Bean"]
transform = Transform3D(1.41676, 0, 0, 0, 1.31718, 0, 0, 0, 1.22029, 0, 0.415995, 0)
layers = 2
mesh = SubResource("PrismMesh_3c3w1")
skeleton = NodePath("../..")
[node name="MeshInstance3D3" type="MeshInstance3D" parent="Bean"]
transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, -0.0855882, 0.409407, 0.293333)
layers = 2
mesh = SubResource("SphereMesh_wnvi2")
skeleton = NodePath("../..")
[node name="MeshInstance3D4" type="MeshInstance3D" parent="Bean"]
transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0.0770122, 0.409407, 0.293333)
layers = 2
mesh = SubResource("SphereMesh_wnvi2")
skeleton = NodePath("../..")
[node name="Label3D" type="Label3D" parent="."] [node name="Label3D" type="Label3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.887858, 0) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.887858, 0)
billboard = 1 billboard = 1
@@ -91,5 +61,31 @@ replication_config = SubResource("SceneReplicationConfig_ulp21")
[node name="Mesh" parent="." instance=ExtResource("2_3c3w1")] [node name="Mesh" parent="." instance=ExtResource("2_3c3w1")]
[node name="Skeleton3D" parent="Mesh/Armature" index="0"]
bones/0/position = Vector3(0, -0.317256, 0)
bones/0/rotation = Quaternion(0.00730244, 3.56402e-05, 0.00102678, 0.999973)
bones/1/rotation = Quaternion(-0.0248584, -6.36843e-12, 9.57895e-11, 0.999691)
bones/2/rotation = Quaternion(0.00530743, -0.0131397, 0.995621, 0.0923985)
bones/3/rotation = Quaternion(-0.000769975, -0.00952565, 0.136517, 0.990592)
bones/4/rotation = Quaternion(0.00845728, 0.559305, 0.0130213, 0.828816)
bones/5/rotation = Quaternion(-0.0246261, 0.000912013, -0.991642, 0.126642)
bones/6/rotation = Quaternion(-0.0688107, -0.729163, -0.0633911, 0.677915)
bones/7/rotation = Quaternion(-0.0263495, 0.0881681, 0.0472475, 0.994636)
bones/9/rotation = Quaternion(0.099457, -0.102183, 0.989766, 0.00545643)
bones/10/rotation = Quaternion(0.271934, 0.123434, -0.0160649, 0.954232)
bones/11/rotation = Quaternion(0.0105295, -0.0539927, 0.998436, 0.0099788)
bones/12/rotation = Quaternion(0.1911, 0.00247102, -0.00156687, 0.981566)
bones/13/position = Vector3(-0.0944914, -0.662892, -0.00320576)
bones/14/position = Vector3(0.0807187, -0.66852, 0.00722197)
bones/14/rotation = Quaternion(-0.00153534, -0.704023, 0.70978, -0.023698)
bones/15/position = Vector3(-0.166202, -0.22143, 0.00323444)
bones/16/position = Vector3(0.208407, -0.217383, 0.00457853)
[node name="AnimationPlayer" parent="Mesh" index="1"]
autoplay = "Idle"
[node name="Watch" parent="." instance=ExtResource("4_83hs8")] [node name="Watch" parent="." instance=ExtResource("4_83hs8")]
transform = Transform3D(0.707107, 0.707107, -2.03718e-08, -0.183013, 0.183013, -0.965926, -0.683013, 0.683013, 0.258819, -0.228015, 0.33104, -0.235279) transform = Transform3D(0.707107, 0.707107, -2.03718e-08, -0.183013, 0.183013, -0.965926, -0.683013, 0.683013, 0.258819, -0.228015, 0.33104, -0.235279)
visible = false
[editable path="Mesh"]

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=7 format=3 uid="uid://xnd2p4kstsfw"] [gd_scene load_steps=6 format=3 uid="uid://xnd2p4kstsfw"]
[ext_resource type="PackedScene" uid="uid://cwjrbynrbn6fh" path="res://player/watch/watch.blend" id="1_aow76"] [ext_resource type="PackedScene" uid="uid://cwjrbynrbn6fh" path="res://player/watch/watch.blend" id="1_aow76"]
[ext_resource type="Script" uid="uid://pte5bmcl0pup" path="res://player/watch/watch.gd" id="1_kkuxj"] [ext_resource type="Script" uid="uid://pte5bmcl0pup" path="res://player/watch/watch.gd" id="1_kkuxj"]
@@ -13,8 +13,6 @@ shading_mode = 0
albedo_texture = SubResource("ViewportTexture_tq7ns") albedo_texture = SubResource("ViewportTexture_tq7ns")
uv1_scale = Vector3(20.675, 20.675, 20.675) uv1_scale = Vector3(20.675, 20.675, 20.675)
[sub_resource type="PlaneMesh" id="PlaneMesh_5wyi7"]
[node name="Watch" type="Node3D"] [node name="Watch" type="Node3D"]
script = ExtResource("1_kkuxj") script = ExtResource("1_kkuxj")
@@ -27,9 +25,4 @@ surface_material_override/0 = SubResource("StandardMaterial3D_vnrqh")
[node name="WatchInterface" parent="SubViewport" instance=ExtResource("3_5wyi7")] [node name="WatchInterface" parent="SubViewport" instance=ExtResource("3_5wyi7")]
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.39069, 0, 0)
mesh = SubResource("PlaneMesh_5wyi7")
surface_material_override/0 = SubResource("StandardMaterial3D_vnrqh")
[editable path="watch"] [editable path="watch"]