when i hold object and roll mouse button it’s rolls on self (x,y,z), I want rolls on camera lookway direction
if (Input.GetAxis("Mouse ScrollWheel") > 0f)
{
transform.Rotate(Vector3.up, smooth * Time.deltaTime);
}
if (Input.GetAxis("Mouse ScrollWheel") < 0f) // geri
{
transform.Rotate(-Vector3.up, smooth * Time.deltaTime);
}
my problem video: roll problem - YouTube