Virtual rotation to arm

Hello,

i need some help to find a solution, imagine the arm has a Y rotation of -30 or 25 or whatever, that what i want is it, that the arm rotate up and down,so that it behaves like a real arm and independed of the current Y rotation, to getting a good result.

How would something like this work ?

Much greetings :slight_smile:

Edit*

It should be really independed, even if the arm has also a rotation of 45°, that it goes straight up and down. greetings


Rotation is 0,0,0 at the first picture

to getting a straight down movement were i forced to edit the X and Z axis, but i dont know, how to hadle this with a script :confused:

The forum is useful as a banana. - YouTube