Preset body's initial angle

I would like to preset a body's angle before it is put into the world.
So, I set,

Code: Select all

var bodyDef = new b2BodyDef;
      bodyDef.type = b2Body.b2_dynamicBody;
      bodyDef.position.Set(50.0, 50.0);
      bodyDef.rotation = 0.5;


And tested it.
It so happens that before the 1st world step, the angle is 0.5, but right after that it automatically becomes 0.
So when seen it looks like the angle was always 0.

How do I preset the angle of a body?
I thought it should be :

Code: Select all

        bodyDef.angle=0.5;

Original thread: https://box2d.org/forum/viewtopic.php?t=8893