Add ear morph with physics support

This commit is contained in:
CroakFang
2022-11-05 19:50:43 +08:00
parent 96ec72b396
commit 28ede4ffe2
9 changed files with 238 additions and 517 deletions
+5 -5
View File
@@ -248,11 +248,11 @@ public class CameraOrbit : MonoBehaviour
private void MobileOrbitLight()
{
return;
if (Input.touchCount == 2 && !eventSystem.IsPointerOverGameObject(Input.touches[0].fingerId) && !eventSystem.IsPointerOverGameObject(Input.touches[1].fingerId))
{
Light.transform.Rotate(Input.GetAxis("Mouse X") * Vector3.up, Space.Self);
Light.transform.Rotate(Input.GetAxis("Mouse Y") * Vector3.right, Space.Self);
}
//if (Input.touchCount == 2 && !eventSystem.IsPointerOverGameObject(Input.touches[0].fingerId) && !eventSystem.IsPointerOverGameObject(Input.touches[1].fingerId))
//{
// Light.transform.Rotate(Input.GetAxis("Mouse X") * Vector3.up, Space.Self);
// Light.transform.Rotate(Input.GetAxis("Mouse Y") * Vector3.right, Space.Self);
//}
}
/// <summary>