I need a function to keep an object always facing up on the Z axis, so that when the component is rotated on the X and Y axis, this object, inside the component, remains in the same position.
this code is in Roty of object:
Roty=IF(OR(DC!roty>0,DC!roty<0))-DC!roty
this doesn’t work, any correction that works by correcting the rotation of the Y axis while the DC is in the home position works, but when I rotate the DC on the Z axis and try to rotate the Y axis (which is now facing the X) everything stops work.
The rotational interaction between the native code and the DC is not intuitive. The various rotations can all change when one value is changed. A complication of pitch, roll, and yaw