Rotation World

when holding an object i want to rotate it with the mouse.
When i move the mouse Down, the object should rotate Downward (regardless of its Local Rotation)
When i move Left, it should rotate to the left (regardless of its Local Rotation)
here is the code i am using.

void Update() {
        //if Right Mouse is Down and An Object is being held....
        if (Input.GetMouseButton(1)&&hand!=null){
            hand.transform.Rotate(new Vector3(Input.GetAxis("Mouse Y")*spinSpeed, Input.GetAxis("Mouse X")*-spinSpeed, 0),Space.World);
           
        }
    }

this works while i am facing in the postive y direction. but if i turn the character it begins to rotate incorrectly.

It looks like you’re using the Y mouse axis to rotate the X axis of the object, and the X axis of the mouse to rotate the Y axis of the object. This is intentional?

yes, because the X axis of mouse is Left Right across the screen, and the Y Axis for rotation rotates the object Around the Y axis (like a top) so if the object is in your face it rotates horizontally.

I had the best results with the following method:

if (Input.GetMouseButton (1)) {
    transform.Rotate (Vector3.left, Input.GetAxis ("Mouse X") * spinSpeed);
    transform.Rotate (Vector3.back, Input.GetAxis ("Mouse Y") * spinSpeed);
}

This may not be exactly the answer you’re looking for, but maybe it’ll help you find it.

i solved my problem… thanks for the help. i did need to split the two to work on them individually
my new code

void Update() {
        //Turns the Empty GameObject that the hand is the child of up and down.
        handloc.transform.Rotate(Vector3.right * Input.GetAxis("Mouse Y")*spinSpeed, Space.Self);
        //Turns the Object on its Y axis In World Coordinates.
        hand.transform.Rotate(Vector3.down * Input.GetAxis("Mouse X")*spinSpeed, Space.World);
    }

It finally came to me, it works like one of those Gimbal Rides.
So as rotate the Object Horizontally, The Rotation of its Parent Stays the Same so you can easily just Tilt That Up and Down and gives the illusion that you are rotating the object vertically as well.