Пример #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;
 }