- Home /
Question by
Greenwar · Feb 08, 2015 at 07:36 PM ·
physics2dhingejoint2d
Set value of HingeJoint2D.jointAngle?
Hey guys, I desperately need to, somehow the HingeJoint2D.jointAngle of an object. I've got this rope (bunch of hinges) which keeps spasming out whenever i disable/enable it and I've narrowed it down to the first piece of the rope adding -720 degrees when its enabled.
I've tried resseting the local transform/rotation values, but that doesnt help so i really need to set the jointAngle somehow.
Is there any way I can do this, be or it legit, hacky or otherwise?
Comment
One more thing, a plausible workaround would be to reset all of the hingejoint2d values (jointAngle, refrenceAngle, etc). However i don't know if thats possible to do at runtime without creating a new object?