TankのHead部分を独立して旋回させる



ヘッド部分を旋回させる
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class HeadController : MonoBehaviour
{
void Update()
{
transform.rotation = Quaternion.Euler(0, Camera.main.transform.eulerAngles.y, 0);
}
}

