public AbstractTsf(AbstractTsf abstractTsf) { this.name = abstractTsf.name; this.space = abstractTsf.space; this.position = abstractTsf.position; this.rotation = abstractTsf.rotation; }
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; }
void UpdateFinger(FingerPose finger, AbstractTsf[] bones, AbstractTsf tip) { finger.bones = bones; finger.tip = tip; }