using System.Collections; using System.Collections.Generic; using UnityEngine; public class AddTorque : MonoBehaviour { public Vector3 torque; public Rigidbody rigid; public Transform hip; // Start is called before the first frame update void Start() { rigid = GetComponent(); } // Update is called once per frame void FixedUpdate() { Vector3 t = hip.TransformDirection(torque); rigid.AddTorque(t, ForceMode.Acceleration); } }