// Start is called before the first frame update void Start() { // Get car thisCar = transform.parent.GetComponent <DriftController>(); initRotation = transform.localEulerAngles; // Rotation relative to parent (car) }
void Awake() { car = GetComponent <DriftController>(); startingPos = this.transform.position; startingRot = this.transform.rotation; }