19 lines
441 B
C#
19 lines
441 B
C#
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;
|
|
}
|
|
}
|
|
}
|