Hello guys,
I’m having a problem with a rotation:
I have a central arm called “rootbase.” This rotates along the z-axis. Attached to it is an “arm2” with a physics constraint that rotates along the y-axis with an add force. Then I have an arm1 that should mirror the movement (when arm2 rotates to the left, arm1 should rotate to the right and vice versa). The problem is that it glitches for a few microseconds when it’s at 90/-90 degrees. When printing the world rotation, I see that it goes from 0 to 89 and at -89 no further. Perhaps this could be the problem. The component hierarchies are a bit complex, so I can’t use the relative rotation. How can I fix this? I’ve attached the schematic and script.
Arm 2’s swinging when the base rotates works. Arm 1’s does too, but there’s that 90-degree teleport glitch I can’t seem to fix.
I don’t know what to do anymore, please help.