I want to controll the steering of a motorcycle by tilting a SteamVR-Controller left or right.
What I tried is:
private SteamVR_Controller.Device controller;
public Vector3 angle { get { return controller.transform.rot.eulerAngles.x; } }
public float steerInput = 0f;
void Inputs (){
steerInput = steerInput * angle;
}
I get the following Error: Cannot implicitly convert type float' to
UnityEngine.Vector3'
Do you have an idea to fix it? Greetings from germany :)