unity 方向盘效果,
改变方向盘的位置 车自身位置跟随方向盘旋转
需要添加一个 boxcollider, 其中一个必须要有刚体, 通过刚体的碰撞来改变方向盘的方向,
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ShipComtrol : MonoBehaviour
{
public Transform ship;//船体
public Vector3 vector3start;
// Start is called before the first frame update