rope处理

This commit is contained in:
2026-02-22 18:34:37 +08:00
parent 54c8439024
commit 06bf72973c
45 changed files with 10342 additions and 502 deletions

View File

@@ -0,0 +1,18 @@
using UnityEngine;
namespace PhysicsTools
{
internal class BoneSegment : Segment
{
public GameObject bone;
public Matrix4x4 initTransform;
public BoneSegment(string name, float len, Vector3 pos, Quaternion q, SegmentPropertiesBase segProperties, Rope r, GameObject b)
: base(name, len, pos, q, segProperties, r)
{
bone = b;
initTransform = seg.transform.worldToLocalMatrix * bone.transform.localToWorldMatrix;
}
}
}