using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Torque : MonoBehaviour {

	public Vector3 torque;
	public float torqueTime;
	private Rigidbody rb;

	// Use this for initialization
	void Start () {
		rb = GetComponent<Rigidbody>();
	}
	
	void FixedUpdate () {
		if (torqueTime >= 0f)  {
			rb.AddTorque(torque);
			torqueTime -= Time.deltaTime;
		}
	}
}
