Yesterday, 12:06 PM
(This post was last modified: Yesterday, 12:07 PM by josemendez.)
(Yesterday, 11:58 AM)Qriva0 Wrote: My sense is that quaternion of particle A has some rotation, but because it's driven in different way than static constraint it can get negative quaternion? and it only happens when both orientations are aligned? Why it becomes stable after flipping?
All a static constraint does is particle.rotation = transform.rotation. It cannot flip because it doesn't operate on the quaternions at all, it's literally just a copy.
A dynamic constraint on the other hand assumes the rotation of the particle and the transform are different. It calculates the minimum orientation that would turn the rotation represented by quaternion A (particle's rotation) into the rotation represented by quaternion B (transform's rotation), then use it to calculate the torques it must apply to both of them in order to get their orientations to match. The problem lies in the way the torques are calculated, if quaternionA =-quaternionB the orientations represented by them already match and the calculated torques are zero. This is why it flips and then becomes stable.
In any case, this should be prevented by using two attachments. Can you share a sample scene that reproduces this by sending it to support(at)virtualmethodstudio.com? This way I can check if there's something else going on.
kind regards,