ios - Is lowerAngleLimit on SKPhysicsJointPin broken? -


I have never found the limit of upper / lower angle to work properly on SKPhysicsJointPin object, and I think that I have finally figured out why: if the lower angle limit is set to a negative value, then it is broken every time. It works correctly only with positive values. For example, I set this 90 degree PIN:

  pin.lowerAngleLimit = -PI / 2; Pin.upperAngleLimit = 0;  

Now I will rotate the phantom gradually over that lower limit, this instant hit-90 degree it suddenly zoom the phantom back in the long way around 0ยบ It will never pin -90 degrees, it does not matter what negative value I try, -1.0 is the exact same thing. It seems a bug in the Spritekit, has anyone got to do this work , Or got an alternative solution?


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -