Tanoda
HandHeightFixer.cs
Go to the documentation of this file.
1using System.Collections;
2using System.Collections.Generic;
3using UnityEngine;
4
8public class HandHeightFixer : MonoBehaviour
9{
10// public ModelRenderer[] hands;
11// public Transform head;
12// public float multiplier = 0.001f;
13//
14// void Update()
15// {
16// var angle = Mathf.Clamp(head.eulerAngles.x, 0, 90);
17// if (angle > 89.0f)
18// {
19// angle = 0.0f;
20// }
21// transform.position = Vector3.up * angle * multiplier;
22// foreach (var hand in hands)
23// {
24// hand.offset = angle * multiplier;
25// }
26// }
27}