So, I want to make a Game, where the Player falls from the Sky and has to avoid objects in the Sky. So I want to make it, that if you move your Mouse to the Left, the Player Rotates to the Left, and the same for the right. But Only the vertical movement of the Mouse is important! Some simple lines, where you say: if mouse is moving left, rotate player to left. Thanks!
This forum is about 2D/3D physics systems in Unity, not how to perform movement using the mouse so I’ll move your post to the Scripting forum.
Oh Ok sry and Thank You!
1 Like
Creating something like
Private x;
Private Speed =3f;
Then in update
X+= Input.getaxisraw(“Mouse X”)*speed;
Transform.localeularangles=new vector 3(x,Of,Of);
That will work