示例#1
0
 public AbstractTsf(AbstractTsf abstractTsf)
 {
     this.name     = abstractTsf.name;
     this.space    = abstractTsf.space;
     this.position = abstractTsf.position;
     this.rotation = abstractTsf.rotation;
 }
示例#2
0
        public static void ApplyTransform(AbstractTsf bonePose, Transform receiverTsf)
        {
            if (bonePose.space == Space.World)
            {
                receiverTsf.position = bonePose.position;
                receiverTsf.rotation = bonePose.rotation;
            }
            else
            {
                receiverTsf.localPosition = bonePose.position;
                receiverTsf.localRotation = bonePose.rotation;
            }

            receiverTsf.localScale = bonePose.localScale;
        }
示例#3
0
 void UpdateFinger(FingerPose finger, AbstractTsf[] bones, AbstractTsf tip)
 {
     finger.bones = bones;
     finger.tip   = tip;
 }