box 2d rotating bodies?

hello, I'm trying to make a mc that first rotates, and when i click, there is created a body. I want the body to have the same rotation as the mc has, so whats the "formula" for converting normal rotation to box2d rotation scales? I need help with that. you can see how it looks like now:http://spamtheweb.com/ul/upload/170308/63080_HelloWorld.phpHow do I fix it? ❓
oh, hold down z, x, c or space, and then click somewhere to create an object. its the c button that makes an wall.
For all you that is wondering about this, I've found the function to it, its:
Code:
bodyDef.rotation=MCname.rotation/180*Math.PI;
. I'm so proud over myself of figuring that out:P

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