v1 = V.GetComponent ().rotation.z... GetComponent ().force = new Vector3 (Input.GetAxis ("Mouse X")*speed*v1

public GameObject V;
public Vector3 v1;
public Vector3 v2;
V = GameObject.FindGameObjectWithTag (“Back”);

v1 = V.GetComponent ().rotation.z;
v2 = V.GetComponent ().rotation.x;

GetComponent<ConstantForce> ().force = new Vector3 (Input.GetAxis ("Mouse X")*speed*v1, 0f, Input.GetAxis ("Mouse Y") * speed*v2);

What’s wrong?

Hi Dartmor,

“What’s wrong?” is our question to you I think. What is the problem you are having?

Just in case I will mention that you may want to use:

v1 = V.GetComponent <Transform> ().eulerAngles.z;
v2 = V.GetComponent <Transform> ().eulerAngles.x;

instead of rotation.z/x.