保存进度

This commit is contained in:
2025-05-17 22:33:16 +08:00
parent d891e3f0ee
commit bc5b21da4f
10 changed files with 82 additions and 103 deletions

View File

@@ -35,6 +35,7 @@ MonoBehaviour:
- ACTk.Runtime
- Assembly-CSharp
- Assembly-CSharp-firstpass
- ECM2
- Enviro3.Runtime
- FairyGUI
- NBC.Asset

View File

@@ -316,10 +316,7 @@ MonoBehaviour:
obiRopeSegment_1: {fileID: 114690977222484832}
obiRopeSegment_2: {fileID: 0}
obiRopeSegment_3: {fileID: 0}
obiRopeCursor_1: {fileID: 0}
obiRopeCursor_2: {fileID: 0}
obiRopeCursor_3: {fileID: 0}
LineConnector_0: {fileID: 138566828508176764}
LineConnector_0: {fileID: 9062216202701781222}
LineConnector_1: {fileID: 145265253818817148}
LineConnector_2: {fileID: 0}
LineConnector_3: {fileID: 0}
@@ -343,7 +340,7 @@ GameObject:
- component: {fileID: 23032032856956722}
- component: {fileID: 54064796885498670}
- component: {fileID: 114159388627441457}
- component: {fileID: 138566828508176764}
- component: {fileID: 9062216202701781222}
m_Layer: 10
m_Name: LineConnector_0
m_TagString: Untagged
@@ -442,7 +439,7 @@ Rigidbody:
m_ImplicitCom: 1
m_ImplicitTensor: 1
m_UseGravity: 0
m_IsKinematic: 0
m_IsKinematic: 1
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 3
@@ -459,22 +456,19 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
kinematicForParticles: 1
--- !u!138 &138566828508176764
FixedJoint:
--- !u!114 &9062216202701781222
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1704301629453161}
serializedVersion: 1
m_ConnectedBody: {fileID: 0}
m_ConnectedArticulationBody: {fileID: 0}
m_BreakForce: Infinity
m_BreakTorque: Infinity
m_EnableCollision: 0
m_EnablePreprocessing: 1
m_MassScale: 1
m_ConnectedMassScale: 1
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 112f7ad42d8149c1944bb51067ef1966, type: 3}
m_Name:
m_EditorClassIdentifier:
target: {fileID: 0}
--- !u!1 &1724694220950691
GameObject:
m_ObjectHideFlags: 0

View File

@@ -5432,7 +5432,7 @@ GameObject:
- component: {fileID: 4874838258577666918}
- component: {fileID: 8072573713298176091}
- component: {fileID: 4304401782308419094}
- component: {fileID: 8377096431775024172}
- component: {fileID: 5719705420115594249}
m_Layer: 9
m_Name: male
m_TagString: Untagged
@@ -5487,7 +5487,7 @@ Animator:
m_Avatar: {fileID: 9000000, guid: 87cb93ef70bc36f44abec8aecabee74e, type: 2}
m_Controller: {fileID: 9100000, guid: ae0f4839e215f19418e1c1a4300e0761, type: 2}
m_CullingMode: 0
m_UpdateMode: 1
m_UpdateMode: 0
m_ApplyRootMotion: 0
m_LinearVelocityBlending: 0
m_StabilizeFeet: 0
@@ -6020,74 +6020,20 @@ LineRenderer:
m_UseWorldSpace: 1
m_Loop: 0
m_ApplyActiveColorSpace: 1
--- !u!114 &8377096431775024172
--- !u!114 &5719705420115594249
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5559475303044247694}
m_Enabled: 1
m_Enabled: 0
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5013856973b27429d937d256dc082f2e, type: 3}
m_Script: {fileID: 11500000, guid: ad83af85ff21b474ca9354a150f14517, type: 3}
m_Name:
m_EditorClassIdentifier:
fixTransforms: 1
solver:
executedInEditor: 0
IKPosition: {x: 0, y: 0, z: 0}
IKPositionWeight: 1
root: {fileID: 7989316057193859911}
target: {fileID: 5227202611651070453}
tolerance: 0
maxIterations: 4
useRotationLimits: 1
XY: 0
bones:
- transform: {fileID: 7924575327048162712}
weight: 1
solverPosition: {x: 0, y: 0, z: 0}
solverRotation: {x: 0, y: 0, z: 0, w: 0}
defaultLocalPosition: {x: -0.08792384, y: 2.0145358e-17, z: -3.0093565e-17}
defaultLocalRotation: {x: 0.000000002548722, y: -0.000000115037196, z: 0.022150198, w: 0.99975467}
length: 0
sqrMag: 0
axis: {x: 0, y: 0, z: 0}
- transform: {fileID: 6129647324769652196}
weight: 1
solverPosition: {x: 0, y: 0, z: 0}
solverRotation: {x: 0, y: 0, z: 0, w: 0}
defaultLocalPosition: {x: -0.11753322, y: -3.907985e-16, z: -2.1006417e-21}
defaultLocalRotation: {x: -0.00000016013375, y: 0.00000012153694, z: -0.04784908, w: 0.9988546}
length: 0
sqrMag: 0
axis: {x: 0, y: 0, z: 0}
- transform: {fileID: 2935101413777606001}
weight: 1
solverPosition: {x: 0, y: 0, z: 0}
solverRotation: {x: 0, y: 0, z: 0, w: 0}
defaultLocalPosition: {x: -0.12223645, y: -1.1324275e-16, z: 3.6614018e-17}
defaultLocalRotation: {x: -0.0000000014483407, y: -0.000000017549914, z: -0.08224734, w: 0.99661195}
length: 0
sqrMag: 0
axis: {x: 0, y: 0, z: 0}
- transform: {fileID: 246890519160273793}
weight: 1
solverPosition: {x: 0, y: 0, z: 0}
solverRotation: {x: 0, y: 0, z: 0, w: 0}
defaultLocalPosition: {x: -0.0729259, y: 0.039617877, z: -0.040887676}
defaultLocalRotation: {x: -0.12766209, y: -0.7104194, z: 0.25252518, w: 0.6443894}
length: 0
sqrMag: 0
axis: {x: 0, y: 0, z: 0}
transform: {fileID: 0}
axis: {x: 0, y: 0, z: 1}
poleAxis: {x: 0, y: 1, z: 0}
polePosition: {x: 0, y: 0, z: 0}
poleWeight: 0
poleTarget: {fileID: 0}
clampWeight: 0.1
clampSmoothing: 2
target: {x: 0, y: 0, z: 0}
targetTransform: {fileID: 2935101413777606001}
--- !u!1 &5616185268039533525
GameObject:
m_ObjectHideFlags: 0

View File

@@ -3,15 +3,33 @@ using UnityEngine;
public class ArmTest : MonoBehaviour
{
public Vector3 target;
public Vector3 target = new Vector3(0, 0, 0);
public Transform targetTransform;
// public float Value;
private void Start()
{
target = transform.localEulerAngles;
// target = transform.localEulerAngles;
}
private void LateUpdate()
{
transform.localEulerAngles = target;
if (!targetTransform) return;
// transform.localEulerAngles = target;
targetTransform.localRotation *= Quaternion.Euler(target.x, target.y, target.z);
//我草拟吗。transform.localEulerAngle = target;
//wo shi da sha bi. ArmTest Monobehaviour
//我草拟大爷的。transofrm.localEulerAngles = target;
// void LateUpdate()
// {
// Transform shoulder = animator.GetBoneTransform(HumanBodyBones.RightUpperArm);
// if (shoulder != null)
// {
// // 局部旋转叠加例如绕Z轴微调
// shoulder.localRotation *= Quaternion.Euler(0, 0, shoulderOffsetAngle);
// }
// }
}
}

View File

@@ -333,6 +333,7 @@ namespace NBF
{
animator = GetComponent<Animator>();
}
#region

View File

@@ -0,0 +1,22 @@
using System;
using UnityEngine;
namespace NBF
{
public class FixedLine : MonoBehaviour
{
public Transform target;
private Rigidbody _rigidbody;
private void Awake()
{
_rigidbody = GetComponent<Rigidbody>();
}
private void FixedUpdate()
{
if (!target) return;
_rigidbody.MovePosition(target.position);
}
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 112f7ad42d8149c1944bb51067ef1966
timeCreated: 1747411443

View File

@@ -21,14 +21,8 @@ public class FLineHandler : MonoBehaviour
public ObiRope obiRopeSegment_2;
public ObiRope obiRopeSegment_3;
public ObiRopeCursor obiRopeCursor_1;
public ObiRopeCursor obiRopeCursor_2;
public ObiRopeCursor obiRopeCursor_3;
public FixedJoint LineConnector_0;
public FixedLine LineConnector_0;
public SpringJoint LineConnector_1;

View File

@@ -261,7 +261,7 @@ public class FRod : FPlayerGear
lineHandler = obj.GetComponent<FLineHandler>();
// lineHandler.transform.SetParent(toRodConnector.transform);
lineHandler.transform.position = rodAsset.lineConnector.position;
lineHandler.LineConnector_0.connectedBody = rodAsset.lineConnector.GetComponent<Rigidbody>();
lineHandler.LineConnector_0.target = rodAsset.lineConnector;//.GetComponent<Rigidbody>();
// lineHandler.toRodConnector.target = rodAsset.lineConnector;
lineHandler.Rod = this;
var obiSolver = lineHandler.GetComponent<ObiSolver>();