From aacd68784e4ae4c33eeae06aafb8f8f1fc2fe48e Mon Sep 17 00:00:00 2001 From: raccoon Date: Sat, 19 Jul 2025 20:48:06 +0500 Subject: [PATCH] A bit optimized setup --- Assets/biped-test/prefabs/biped-test.prefab | 263 ++++++-------------- 1 file changed, 74 insertions(+), 189 deletions(-) diff --git a/Assets/biped-test/prefabs/biped-test.prefab b/Assets/biped-test/prefabs/biped-test.prefab index 31f0931..232b646 100644 --- a/Assets/biped-test/prefabs/biped-test.prefab +++ b/Assets/biped-test/prefabs/biped-test.prefab @@ -1,129 +1,5 @@ %YAML 1.1 %TAG !u! tag:unity3d.com,2011: ---- !u!1 &351631328601385012 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 2543603310472518719} - m_Layer: 0 - m_Name: tgt_thigh_R - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &2543603310472518719 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 351631328601385012} - serializedVersion: 2 - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0.1, y: 0, z: -0.01} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 3556421196598188923} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &418188751863365156 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1578158377217982075} - m_Layer: 0 - m_Name: tgt_bicep_L - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1578158377217982075 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 418188751863365156} - serializedVersion: 2 - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0.1, y: -0, z: 0.01} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 424384217525716511} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &597305635309185869 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 247071396781051338} - m_Layer: 0 - m_Name: tgt_thigh_L - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &247071396781051338 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 597305635309185869} - serializedVersion: 2 - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0.1, y: 0, z: -0.01} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 2457318849299711646} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1142931604589174438 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 8025795493677456340} - m_Layer: 0 - m_Name: tgt_bicep_R - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &8025795493677456340 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1142931604589174438} - serializedVersion: 2 - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0.1, y: 0, z: 0.01} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 9198163923936050516} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1001 &3938007844699246746 PrefabInstance: m_ObjectHideFlags: 0 @@ -187,35 +63,45 @@ PrefabInstance: propertyPath: m_LocalEulerAnglesHint.z value: -81.738 objectReference: {fileID: 0} + - target: {fileID: -6303677176666583852, guid: 27091942395a0b541b74388ce477f124, + type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} - target: {fileID: -6303677176666583852, guid: 27091942395a0b541b74388ce477f124, type: 3} propertyPath: m_LocalRotation.x - value: 0.00000075185113 + value: 0.0000009106513 objectReference: {fileID: 0} - target: {fileID: -6303677176666583852, guid: 27091942395a0b541b74388ce477f124, type: 3} propertyPath: m_LocalRotation.y - value: 0.00000012644053 + value: 0.0000001264405 objectReference: {fileID: 0} - target: {fileID: -6303677176666583852, guid: 27091942395a0b541b74388ce477f124, type: 3} propertyPath: m_LocalRotation.z - value: -0.00000005960465 + value: -0.00000008940698 + objectReference: {fileID: 0} + - target: {fileID: -6185805655735515873, guid: 27091942395a0b541b74388ce477f124, + type: 3} + propertyPath: m_LocalRotation.w + value: 1 objectReference: {fileID: 0} - target: {fileID: -6185805655735515873, guid: 27091942395a0b541b74388ce477f124, type: 3} propertyPath: m_LocalRotation.x - value: 0.00000035762787 + value: 0.00000031292444 objectReference: {fileID: 0} - target: {fileID: -6185805655735515873, guid: 27091942395a0b541b74388ce477f124, type: 3} propertyPath: m_LocalRotation.y - value: 0 + value: 0.0000003467405 objectReference: {fileID: 0} - target: {fileID: -6185805655735515873, guid: 27091942395a0b541b74388ce477f124, type: 3} propertyPath: m_LocalRotation.z - value: 0 + value: -0.000000026146253 objectReference: {fileID: 0} - target: {fileID: -6152672607127632898, guid: 27091942395a0b541b74388ce477f124, type: 3} @@ -267,25 +153,20 @@ PrefabInstance: propertyPath: m_LocalEulerAnglesHint.z value: 0 objectReference: {fileID: 0} - - target: {fileID: -3544865379332318173, guid: 27091942395a0b541b74388ce477f124, - type: 3} - propertyPath: m_LocalRotation.w - value: 1 - objectReference: {fileID: 0} - target: {fileID: -3544865379332318173, guid: 27091942395a0b541b74388ce477f124, type: 3} propertyPath: m_LocalRotation.x - value: -0.00000035762787 + value: -0.00000037252912 objectReference: {fileID: 0} - target: {fileID: -3544865379332318173, guid: 27091942395a0b541b74388ce477f124, type: 3} propertyPath: m_LocalRotation.y - value: 0 + value: 0.000000043246345 objectReference: {fileID: 0} - target: {fileID: -3544865379332318173, guid: 27091942395a0b541b74388ce477f124, type: 3} propertyPath: m_LocalRotation.z - value: 0 + value: -0.00000005594852 objectReference: {fileID: 0} - target: {fileID: -3186114881174247739, guid: 27091942395a0b541b74388ce477f124, type: 3} @@ -387,10 +268,20 @@ PrefabInstance: propertyPath: m_LocalRotation.w value: 1 objectReference: {fileID: 0} + - target: {fileID: 303287287709278532, guid: 27091942395a0b541b74388ce477f124, + type: 3} + propertyPath: m_LocalRotation.x + value: -0 + objectReference: {fileID: 0} - target: {fileID: 303287287709278532, guid: 27091942395a0b541b74388ce477f124, type: 3} propertyPath: m_LocalRotation.y - value: -0.0000000054057803 + value: -0.000000005405801 + objectReference: {fileID: 0} + - target: {fileID: 303287287709278532, guid: 27091942395a0b541b74388ce477f124, + type: 3} + propertyPath: m_LocalRotation.z + value: 0 objectReference: {fileID: 0} - target: {fileID: 665724211342417955, guid: 27091942395a0b541b74388ce477f124, type: 3} @@ -435,7 +326,7 @@ PrefabInstance: - target: {fileID: 1012907589769037070, guid: 27091942395a0b541b74388ce477f124, type: 3} propertyPath: m_LocalRotation.y - value: -0.000000052683564 + value: -0.00000005268358 objectReference: {fileID: 0} - target: {fileID: 1012907589769037070, guid: 27091942395a0b541b74388ce477f124, type: 3} @@ -500,12 +391,12 @@ PrefabInstance: - target: {fileID: 2226215964224705827, guid: 27091942395a0b541b74388ce477f124, type: 3} propertyPath: m_LocalRotation.x - value: 0.00000075185005 + value: 0.00000091064993 objectReference: {fileID: 0} - target: {fileID: 2226215964224705827, guid: 27091942395a0b541b74388ce477f124, type: 3} propertyPath: m_LocalRotation.y - value: -2.842171e-14 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2226215964224705827, guid: 27091942395a0b541b74388ce477f124, type: 3} @@ -525,7 +416,7 @@ PrefabInstance: - target: {fileID: 3023593939887201829, guid: 27091942395a0b541b74388ce477f124, type: 3} propertyPath: m_LocalRotation.y - value: 0.00000003855945 + value: 0.00000006335808 objectReference: {fileID: 0} - target: {fileID: 3023593939887201829, guid: 27091942395a0b541b74388ce477f124, type: 3} @@ -550,17 +441,17 @@ PrefabInstance: - target: {fileID: 3420511502100668643, guid: 27091942395a0b541b74388ce477f124, type: 3} propertyPath: m_LocalRotation.x - value: 0.0000041574244 + value: 0.0000037997966 objectReference: {fileID: 0} - target: {fileID: 3420511502100668643, guid: 27091942395a0b541b74388ce477f124, type: 3} propertyPath: m_LocalRotation.y - value: -0.000000055590966 + value: -0.000000085393275 objectReference: {fileID: 0} - target: {fileID: 3420511502100668643, guid: 27091942395a0b541b74388ce477f124, type: 3} propertyPath: m_LocalRotation.z - value: 0.00000037618554 + value: 0.0000003761855 objectReference: {fileID: 0} - target: {fileID: 3429277402418055754, guid: 27091942395a0b541b74388ce477f124, type: 3} @@ -595,7 +486,7 @@ PrefabInstance: - target: {fileID: 7291766924994722225, guid: 27091942395a0b541b74388ce477f124, type: 3} propertyPath: m_LocalRotation.y - value: 0.000000021073406 + value: 3.6549214e-14 objectReference: {fileID: 0} - target: {fileID: 7291766924994722225, guid: 27091942395a0b541b74388ce477f124, type: 3} @@ -630,17 +521,17 @@ PrefabInstance: - target: {fileID: 8281611765213589234, guid: 27091942395a0b541b74388ce477f124, type: 3} propertyPath: m_LocalRotation.x - value: 0.00000020861627 + value: -0.00000035762795 objectReference: {fileID: 0} - target: {fileID: 8281611765213589234, guid: 27091942395a0b541b74388ce477f124, type: 3} propertyPath: m_LocalRotation.y - value: 0.000000043246317 + value: 0.00000004324634 objectReference: {fileID: 0} - target: {fileID: 8281611765213589234, guid: 27091942395a0b541b74388ce477f124, type: 3} propertyPath: m_LocalRotation.z - value: -0.00000004104738 + value: -0.000000041047354 objectReference: {fileID: 0} - target: {fileID: 9120293841149285430, guid: 27091942395a0b541b74388ce477f124, type: 3} @@ -669,23 +560,7 @@ PrefabInstance: objectReference: {fileID: 0} m_RemovedComponents: [] m_RemovedGameObjects: [] - m_AddedGameObjects: - - targetCorrespondingSourceObject: {fileID: 3694405763002209925, guid: 27091942395a0b541b74388ce477f124, - type: 3} - insertIndex: -1 - addedObject: {fileID: 1578158377217982075} - - targetCorrespondingSourceObject: {fileID: -3962908050271670834, guid: 27091942395a0b541b74388ce477f124, - type: 3} - insertIndex: -1 - addedObject: {fileID: 8025795493677456340} - - targetCorrespondingSourceObject: {fileID: 1494275044537374212, guid: 27091942395a0b541b74388ce477f124, - type: 3} - insertIndex: -1 - addedObject: {fileID: 247071396781051338} - - targetCorrespondingSourceObject: {fileID: -8647914616880919583, guid: 27091942395a0b541b74388ce477f124, - type: 3} - insertIndex: -1 - addedObject: {fileID: 2543603310472518719} + m_AddedGameObjects: [] m_AddedComponents: - targetCorrespondingSourceObject: {fileID: 919132149155446097, guid: 27091942395a0b541b74388ce477f124, type: 3} @@ -714,7 +589,7 @@ PrefabInstance: - targetCorrespondingSourceObject: {fileID: 7081410395269828096, guid: 27091942395a0b541b74388ce477f124, type: 3} insertIndex: -1 - addedObject: {fileID: 2844424274091911648} + addedObject: {fileID: 6261989165364044776} - targetCorrespondingSourceObject: {fileID: -443446785765850316, guid: 27091942395a0b541b74388ce477f124, type: 3} insertIndex: -1 @@ -726,7 +601,7 @@ PrefabInstance: - targetCorrespondingSourceObject: {fileID: -4659122162336600840, guid: 27091942395a0b541b74388ce477f124, type: 3} insertIndex: -1 - addedObject: {fileID: 2869428009150877819} + addedObject: {fileID: 1828362548174821607} - targetCorrespondingSourceObject: {fileID: 6181294692900419695, guid: 27091942395a0b541b74388ce477f124, type: 3} insertIndex: -1 @@ -1128,7 +1003,7 @@ GameObject: type: 3} m_PrefabInstance: {fileID: 3938007844699246746} m_PrefabAsset: {fileID: 0} ---- !u!114 &2869428009150877819 +--- !u!114 &1828362548174821607 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -1137,7 +1012,7 @@ MonoBehaviour: m_GameObject: {fileID: 716604852922678370} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 1788371120, guid: 58e2f01a24261a14cb82e6d3399e8b16, type: 3} + m_Script: {fileID: -926596935, guid: 58e2f01a24261a14cb82e6d3399e8b16, type: 3} m_Name: m_EditorClassIdentifier: IsActive: 1 @@ -1234,9 +1109,14 @@ MonoBehaviour: latestValidExecutionGroupIndex: 0 RotationAtRest: {x: 0, y: 0, z: 0} RotationOffset: {x: 0, y: 0, z: 0} + WorldUpTransform: {fileID: 2623655186333906306} AffectsRotationX: 1 - AffectsRotationY: 0 - AffectsRotationZ: 0 + AffectsRotationY: 1 + AffectsRotationZ: 1 + AimAxis: {x: -1, y: 0, z: 0} + UpAxis: {x: 0, y: 0, z: -1} + WorldUp: 2 + WorldUpVector: {x: 0, y: 0, z: -1} --- !u!1 &1049022193145722237 stripped GameObject: m_CorrespondingSourceObject: {fileID: -5176749897340967449, guid: 27091942395a0b541b74388ce477f124, @@ -1633,14 +1513,14 @@ MonoBehaviour: latestValidExecutionGroupIndex: 0 RotationAtRest: {x: 0, y: 0, z: 0} RotationOffset: {x: 0, y: 0, z: 0} - WorldUpTransform: {fileID: 247071396781051338} + WorldUpTransform: {fileID: 2457318849299711646} AffectsRotationX: 1 AffectsRotationY: 1 AffectsRotationZ: 1 AimAxis: {x: -1, y: 0, z: 0} UpAxis: {x: 0, y: 0, z: -1} - WorldUp: 1 - WorldUpVector: {x: 0, y: 1, z: 0} + WorldUp: 2 + WorldUpVector: {x: 1, y: 0, z: -0.1} --- !u!1 &4208601296884542923 stripped GameObject: m_CorrespondingSourceObject: {fileID: 919132149155446097, guid: 27091942395a0b541b74388ce477f124, @@ -2196,14 +2076,14 @@ MonoBehaviour: latestValidExecutionGroupIndex: 0 RotationAtRest: {x: 0, y: 0, z: 0} RotationOffset: {x: 0, y: 0, z: 0} - WorldUpTransform: {fileID: 2543603310472518719} + WorldUpTransform: {fileID: 3556421196598188923} AffectsRotationX: 1 AffectsRotationY: 1 AffectsRotationZ: 1 AimAxis: {x: -1, y: 0, z: 0} UpAxis: {x: 0, y: 0, z: -1} - WorldUp: 1 - WorldUpVector: {x: 0, y: 1, z: 0} + WorldUp: 2 + WorldUpVector: {x: 1, y: 0, z: -0.1} --- !u!4 &5321805676044748555 stripped Transform: m_CorrespondingSourceObject: {fileID: 9186295773653768081, guid: 27091942395a0b541b74388ce477f124, @@ -2328,14 +2208,14 @@ MonoBehaviour: latestValidExecutionGroupIndex: 0 RotationAtRest: {x: 0, y: 0, z: 0} RotationOffset: {x: 0, y: 0, z: 0} - WorldUpTransform: {fileID: 1578158377217982075} + WorldUpTransform: {fileID: 424384217525716511} AffectsRotationX: 1 AffectsRotationY: 1 AffectsRotationZ: 1 AimAxis: {x: -1, y: 0, z: 0} UpAxis: {x: 0, y: 0, z: 1} - WorldUp: 1 - WorldUpVector: {x: 0, y: 1, z: 0} + WorldUp: 2 + WorldUpVector: {x: 1, y: 0, z: 0.1} --- !u!4 &5882220126837457028 stripped Transform: m_CorrespondingSourceObject: {fileID: 7423978716563034142, guid: 27091942395a0b541b74388ce477f124, @@ -2348,7 +2228,7 @@ GameObject: type: 3} m_PrefabInstance: {fileID: 3938007844699246746} m_PrefabAsset: {fileID: 0} ---- !u!114 &2844424274091911648 +--- !u!114 &6261989165364044776 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -2357,7 +2237,7 @@ MonoBehaviour: m_GameObject: {fileID: 6116069135661211290} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 1788371120, guid: 58e2f01a24261a14cb82e6d3399e8b16, type: 3} + m_Script: {fileID: -926596935, guid: 58e2f01a24261a14cb82e6d3399e8b16, type: 3} m_Name: m_EditorClassIdentifier: IsActive: 1 @@ -2454,9 +2334,14 @@ MonoBehaviour: latestValidExecutionGroupIndex: 0 RotationAtRest: {x: 0, y: 0, z: 0} RotationOffset: {x: 0, y: 0, z: 0} + WorldUpTransform: {fileID: 7879729465158202578} AffectsRotationX: 1 - AffectsRotationY: 0 - AffectsRotationZ: 0 + AffectsRotationY: 1 + AffectsRotationZ: 1 + AimAxis: {x: -1, y: 0, z: 0} + UpAxis: {x: 0, y: 0, z: -1} + WorldUp: 2 + WorldUpVector: {x: 0, y: 0, z: -1} --- !u!1 &6141238632800072738 stripped GameObject: m_CorrespondingSourceObject: {fileID: 7177773235947447480, guid: 27091942395a0b541b74388ce477f124, @@ -2811,14 +2696,14 @@ MonoBehaviour: latestValidExecutionGroupIndex: 0 RotationAtRest: {x: 0, y: 0, z: 0} RotationOffset: {x: 0, y: 0, z: 0} - WorldUpTransform: {fileID: 8025795493677456340} + WorldUpTransform: {fileID: 9198163923936050516} AffectsRotationX: 1 AffectsRotationY: 1 AffectsRotationZ: 1 AimAxis: {x: -1, y: 0, z: 0} UpAxis: {x: 0, y: 0, z: 1} - WorldUp: 1 - WorldUpVector: {x: 0, y: 1, z: 0} + WorldUp: 2 + WorldUpVector: {x: 1, y: 0, z: 0.1} --- !u!4 &7240994477851267431 stripped Transform: m_CorrespondingSourceObject: {fileID: -3252809107607666179, guid: 27091942395a0b541b74388ce477f124,