Answer the question
In order to leave comments, you need to log in
Why is the player turning in z?
I don't add in z, but it rotates in z. What's the catch?
private void MouseMove()
{
Vector2 mousevelosity = new Vector2(Input.GetAxisRaw("Mouse X"), Input.GetAxisRaw("Mouse Y")) * _sensitivity;
_currentMouseSmooth = Vector2.SmoothDamp(_currentMouseSmooth, mousevelosity, ref _mouseVelosity, _mouseSmooth);
transform.Rotate(_currentMouseSmooth.x, _currentMouseSmooth.y, 0);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question