How to set HINGE constraint orientation programmaticaly ?

Hello,

I have a simple hinge with a “swing 1” limited to 45°

I just want to change the orientation of that hinge within that range, PROGRAMMATICALLY

I tried :

  • set angular swing 1 limit on the hinge -> nothing moves

  • **setWorldRotation **on the physical object -> the physical object goes wack

thanks for the time you’ll spend on this

… I would try to flip the object the hinge is attached to.

ok, my bad, I just had to use angular motors, the trick is to give them some strength otherwise they appear to do nothing

why is there no function to set their strength ? it is only available in the editor