This command will return the X position of the specified body. The position is in relation to the standard 2D coordinates - (0,0) being the top-left corner of the screen, and the X position increasing as you go across the screen. The parameter should be the integer handle of the body to be located.
Syntax
Return as Float = b2GetBodyX(ID as Integer)