- Home /
Question by
bamene · Feb 06, 2017 at 07:49 AM ·
ydefinitionx
'float' does not contain a definition for 'x'
var md = new Vector2(Input.GetAxisRaw("Mouse X"), Input.GetAxisRaw("Mouse Y"));
md = Vector2.Scale(md, new Vector2(sensitivity * smoothing, sensitivity * smoothing));
smoothV.x = Mathf.Lerp(smoothV.x, md.x, if / smoothing);
smoothV.y = Mathf.Lerp(smoothV.y, md.y, if / smoothing);
MouseLook += smoothV;
Comment
i tried everything i could but it says that there was no definition for 'x' so i was stuck.
Your answer
Follow this Question
Related Questions
script not working? 1 Answer
How can I get x, y, z spawnpoints from a csv or text file? 1 Answer
2d rigidbody drag on x, y axis 0 Answers