View Full Version : PEV - Gimball Lock

June 19th, 2010, 12:22 AM
AttachmentMaker anomaly. Tried to Open Att Mesh on file (prr_b60_baggage_body.im) in PRR B60 Baggage,<kuid2:58843:204:1> and get Gimbal lock. Can not resolve angles. Click OK and get it again. Click OK and mesh displays ok.


June 19th, 2010, 05:59 AM

It's no anomoly.. It's a mathematical fact. It occurs when the y axis rotation is + or - 90deg. Rotations are stored in the mesh as a 3x3 matrix which is incomprehensible fot the user, so I converted to axis angle rotations. The matrix mathematics to convert to axis angles ends up with a divide by zero situation when Y rotn is 90 deg; so it takes emergency action. The program then makes an assumption and bangs in some appropriate numbers.

I'm surprised it has shown up because the y axis is very wisely used as a direction pointer so you generally use x and z rotations to get the y axis to point where you want it.

The situation you describe probably means that two attachments have the rotation values that cause the problem.

Just check that the attachment is rotated as you need it.