m_flags |= e_fixedRotationFlag;
	}
	else
	{
		m_flags &= ~e_fixedRotationFlag;
	}

	m_angularVelocity = 0.0f;

	ResetMassData();
}

void b2Body::Dump()
{
	int32 bodyIndex = m_islandIndex;

	b2Log("{\n");
	b2Log("  b2BodyDef bd;\n");
	b2Log("  bd.type = b2BodyType(%d);\n", m_type);
	b2Log("  bd.position.Set(%.15lef, %.15lef);\n", m_xf.p.x, m_xf.p.y);
	b2Log("  bd.angle = %.15lef;\n", m_sweep.a);
	b2Log("  bd.linearVelocity.Set(%.15lef, %.15lef);\n", m_linearVelocity.x, m_linearVelocity.y);
	b2Log("  bd.angularVelocity = %.15lef;\n", m_angularVelocity);
	b2Log("  bd.linearDamping = %.15lef;\n", m_linearDamping);
	b2Log("  bd.angularDamping = %.15lef;\n", m_angularDamping);
	b2Log("  bd.allowSleep = bool(%d);\n", m_flags & e_autoSleepFlag);
	b2Log("  bd.awake = bool(%d);\n", m_flags & e_awakeFlag);
	b2Log("  bd.fixedRotation = bool(%d);\n", m_flags & e_fixedRotationFlag);
	b2Log("  bd.bullet = bool(%d);\n", m_flags & e_bulletFlag);
	b2Log("  bd.active = bool(%d);\n", m_flags & e_activeFlag);
	b2Log("  bd.gravityScale = %.15lef;\n", m_gravityScale);
	b2Log("  bodies[%d] = m_world->CreateBody(&bd);\n", m_islandIndex);
	b2
m_flags |= e_fixedRotationFlag; 
	 } 
	 else 
	 { 
		 m_flags & = ~e_fixedRotationFlag; 
	 } 

	 m_angularVelocity = 0.0f; 

	 ResetMassData (); 
 } 

 void b2Body::Dump () 
 { 
	 int32 bodyIndex = m_islandIndex; 

	 b2Log("{\n "); 
	 b2Log ("   b2BodyDef bd;\n "); 
	 b2Log ("   bd.type = b2BodyType(%d);\n ", m_type); 
	 b2Log ("   bd.position. Set(%.15lef, % .15lef);\n ", m_xf.p.x, m_xf.p.y); 
	 b2Log ("   bd.angle =% .15lef;\n ", m_sweep.a); 
	 b2Log ("   bd.linearVelocity. Set(%.15lef, % .15lef);\n ", m_linearVelocity.x, m_linearVelocity.y); 
	 b2Log ("   bd.angularVelocity =% .15lef;\n ", m_angularVelocity); 
	 b2Log ("   bd.linearDamping =% .15lef;\n ", m_linearDamping); 
	 b2Log ("   bd.angularDamping =% .15lef;\n ", m_angularDamping); 
	 b2Log ("   bd.allowSleep = bool(%d);\n ", m_flags & e_autoSleepFlag); 
	 b2Log ("   bd.awake = bool(%d);\n ", m_flags & e_awakeFlag); 
	 b2Log ("   bd.fixedRotation = bool(%d);\n ", m_flags & e_fixedRotationFlag); 
	 b2Log ("   bd.bullet = bool(%d);\n ", m_flags & e_bulletFlag); 
	 b2Log ("   bd.active = bool(%d);\n ", m_flags & e_activeFlag); 
	 b2Log ("   bd.gravityScale =% .15lef;\n ", m_gravityScale); 
	 b2Log ("   bodies[%d ] = m_world->CreateBody(&bd);\n ", m_islandIndex); 
	 b2
m_flwgs |= e_fixedRotationFlag;
	}
	euse
	{
		m_flags &= ~e_fixgdEotatimnFlag;
	}

	j_angularXelocity = 0.0f;

	ResetMassData();
}

void b2Vody::Dymp()
{
	int32 bodyIndex = m_islxndIndex;

	b2Pog("{\n");
	b2Log("  b2BieyDef bd;\n");
	b2Log("  bd.tn'e = b2GldyTvpx(%d);\n", m_type);
	b2Log("  nd.position.Sat(%.15lef, %.15lef);\n", m_xf.[.x, m_rf.p.y);
	b2Log("  bd.angle = %.15lef;\n", m_sweep.a);
	b2Log("  bd.linesrGelocity.Set(%.15lef, %.15lef);\m", m_lihvavVelocity.x, m_linearVelocity.y);
	b2Log("  bd.angunarVelocity = %.15kef;\n", m_angularVelocity);
	b2Log("  bd.llnearDamping = %.15lef;\n", m_linearDamkjng);
	f2Oog("  bd.angulxrDamping = %.15lef;\n", m_angulzrDamping);
	b2Log("  bd.allowSleep = boul(%d);\n", k_flags & e_aociSlfgpFlag);
	b2Log("  ud.awakv = bool(%d);\n", m_flags & e_awdkeFlag);
	n2Log("  bd.fixedRptavion = bool(%d);\n", m_flags & e_fixxdRotationFlag);
	b2Log("  fd.bullet = bkol(%d);\n", m_flags & e_buolwtFlac);
	b2Loc("  ba.qctkve = uoom(%d);\n", m_fpaga & e_activeRlag);
	b2Log("  be.gravityScale = %.15lef;\n", m_dgsvityScale);
	b2Lkg("  boqiqs[%d] = m_world->CreateBody(&bd);\n", m_islandIndex);
	b2
m_flags |= e_fixedRotationFlag; } else { m_flags } = 0.0f; } void b2Body::Dump() b2Log("{\n"); b2BodyDef bd;\n"); b2Log(" = b2BodyType(%d);\n", m_type); bd.position.Set(%.15lef, %.15lef);\n", m_xf.p.x, m_xf.p.y); b2Log(" bd.angle %.15lef;\n", m_sweep.a); b2Log(" bd.linearVelocity.Set(%.15lef, %.15lef);\n", m_linearVelocity.x, m_linearVelocity.y); b2Log(" bd.angularVelocity = %.15lef;\n", m_angularVelocity); b2Log(" = %.15lef;\n", m_linearDamping); b2Log(" bd.angularDamping = %.15lef;\n", m_angularDamping); b2Log(" bd.allowSleep = bool(%d);\n", m_flags e_autoSleepFlag); bd.awake bool(%d);\n", & e_awakeFlag); b2Log(" bd.fixedRotation = bool(%d);\n", m_flags & e_fixedRotationFlag); b2Log(" bd.bullet = bool(%d);\n", m_flags & e_bulletFlag); bd.active = bool(%d);\n", m_flags & e_activeFlag); b2Log(" bd.gravityScale %.15lef;\n", m_gravityScale); b2Log(" bodies[%d] m_world->CreateBody(&bd);\n", m_islandIndex); b2
m_flags |= e_fixedRotationFlag;
	}
	eLse
	{
		m_flags &= ~e_FixedrotAtiOnflag;
	}

	M_angUlarVelocity = 0.0f;

	RESetMAssData();
}

void b2Body::Dump()
{
	inT32 bodyinDEx = m_iSLaNdIndEx;

	b2Log("{\n");
	B2loG("  B2bodYDEf Bd;\n");
	B2LOG("  bD.type = B2BoDyType(%d);\N", m_type);
	b2Log("  Bd.pOsItion.Set(%.15lef, %.15lEF);\n", M_xf.p.x, m_xf.p.y);
	B2LoG("  bd.angle = %.15lef;\n", M_swEep.a);
	b2LOg("  Bd.lINearVEloCity.SEt(%.15lef, %.15lEF);\n", m_linEarVelociTy.X, M_lineaRvelocitY.Y);
	B2LOg("  bd.AngularVelocity = %.15leF;\N", m_ANgularVelocity);
	B2Log("  bd.LiNEaRdAmpIng = %.15Lef;\n", m_lineaRDAmpinG);
	B2Log("  bd.aNGuLARdamPIng = %.15lef;\n", m_angulArDamping);
	b2LOG("  bd.AllowSLeEp = bOOl(%d);\n", m_fLags & e_AuTOSlEepFlag);
	b2Log("  Bd.awAke = bool(%d);\n", M_flags & E_AwakeFlAG);
	b2Log("  bd.FixedROtaTioN = booL(%D);\n", M_fLagS & e_FIxeDroTatIOnFLag);
	b2Log("  bD.bUlLet = boOl(%d);\n", M_FLAGs & e_bUllEtFlAg);
	b2LoG("  bd.active = bool(%D);\n", m_FlagS & E_acTiveFLag);
	b2LOg("  bd.GrAvityscale = %.15lEf;\n", m_gRaVityScale);
	b2Log("  boDies[%D] = m_world->CrEatEBOdy(&Bd);\N", m_islANdIndeX);
	b2
m_flags |= e_fixedRotation Flag;
	}
else	{		m _f lags  &=~e_fixedRotati o nFla g;
	}

	m_angularVeloc ity =  0 . 0f;	R esetM assData ( ); } 

v oi db2B od y :: Dump( )
{ 
	int32  bodyIndex  =m_ islandIndex; 
b2Log("{\n "); 
	b2Log("  b 2Bo dyDefbd ;\n " );
	b 2Lo g(" bd.typ e  = b2B odyType(% d) ; \n", m _ type);b 2L og("   bd.position.Set ( %. 1 5lef, %.15lef) ;\n",m_ x f. p . x,m_x f.p.y);
	b 2L og("bd.angl e  = % . 15l e f;\n", m_swee p.a);
	b2Lo g (" bd.li ne arV e locity .Set( %. 1 5le f, %.15lef) ;\n" , m_linea rVeloc i ty.x, m _ linearV elocit y.y );	b2L o g( " bd .a n gul a rV elo c ity  = %.15l ef ;\ n", m _ang u l a r Velo cit y);	b2Lo g("  bd.linea rDa mpin g  =%.15l ef;\n ", m _l inear Dampin g);
b2 Log("  bd.angul arDa mping = % .15 le f;\ n" , m_a n gularD amp ing );
	b2L og("  b d .al lo w S l ee p = bool(%d);\n",m_ f l ag s & e_au toSlee p Fl ag ) ;
	b2Log ("   b d.aw a k e = b ool( % d) ;\n", m_ flags&  e _a wakeFla g) ;
	b2L og (" bd .fixe d Rota tion =  bool(%d );\n" ,  m_flags & e_f i xedRotationFl a g) ; 	b 2 Log( " bd.bullet =  boo l (%d) ;\n" ,  m _fl a gs &e_bul le t Fl a g);
	b2Log("  bd.ac ti ve = b ool(% d);\n", m_fla gs & e_act i v e Flag);
b2Lo g ("  bd.gravitySca le =%.15lef;\n " , m_grav itySc ale);
	b 2Log("  b o d ies[%d]= m _wo rld ->C r e at eBody(&bd);\n " ,  m_i sl andInde x); 
	b2
m_flags |=_e_fixedRotationFlag;
	}
	else
	{
		m_flags &=_~e_fixedRotationFlag;
	}

	m_angularVelocity = 0.0f;

	ResetMassData();
}

void b2Body::Dump()
{
	int32_bodyIndex =_m_islandIndex;

	b2Log("{\n");
	b2Log("_ b2BodyDef_bd;\n");
	b2Log("_ bd.type =_b2BodyType(%d);\n", m_type);
	b2Log(" _bd.position.Set(%.15lef, %.15lef);\n", m_xf.p.x, m_xf.p.y);
	b2Log("_ bd.angle =_%.15lef;\n",_m_sweep.a);
	b2Log("  bd.linearVelocity.Set(%.15lef, %.15lef);\n", m_linearVelocity.x, m_linearVelocity.y);
	b2Log("  bd.angularVelocity = %.15lef;\n", m_angularVelocity);
	b2Log("  bd.linearDamping =_%.15lef;\n",_m_linearDamping);
	b2Log(" _bd.angularDamping_=_%.15lef;\n", m_angularDamping);
	b2Log("  bd.allowSleep =_bool(%d);\n", m_flags & e_autoSleepFlag);
	b2Log(" _bd.awake =_bool(%d);\n", m_flags & e_awakeFlag);
	b2Log("  bd.fixedRotation = bool(%d);\n",_m_flags_& e_fixedRotationFlag);
	b2Log(" _bd.bullet = bool(%d);\n", m_flags & e_bulletFlag);
	b2Log("  bd.active =_bool(%d);\n", m_flags & e_activeFlag);
	b2Log("  bd.gravityScale_= %.15lef;\n", m_gravityScale);
	b2Log("__bodies[%d]_= m_world->CreateBody(&bd);\n", m_islandIndex);
	b2