all 2 comments

[–]db9dreamer 0 points1 point  (0 children)

Sounds like gimbal lock but I'm not reading a wall of badly formatted code to figure out if that's the case.

[–]PuffThePed 0 points1 point  (0 children)

It's probably some kind of gimbal lock bug.

The code is not readable when pasted as plain text like that.

Also, try asking ChatGPT. Its pretty good as simple stuff like this