I was under the impression that to start a body at a specified angle of a revolute joint you set the referenceAngle. This isn't working for me. The only thing changing when altering referenceAngle is the position of the limits.
I am using box2dweb (the javascript version). I created a demo for you if you'd be so kind as to take a peek. There are two identical structures with a revolute joint. They both have angleLimits of -90deg thru 90deg. The only difference is the top structure has a referenceAngle of 0deg, while the bottom one has a referenceAngle of 90deg. And yes I know they accept angles in radians--if you look at the source you'll see I used a converter function.
Again, I'm trying to start the bodies/joint at a certain angle. I'm sure I'm probably just doing it wrong, but if this is an issue with box2dweb, is there a workaround/alternative to setting the starting angle? Or am I not using referenceAngle for the correct purpose?
Here's the -- DEMO