I would like to preset a body's angle before it is put into the world.
So, I set,
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?
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?