box2d 刚体的重心设置
引用:http://bbs.51cto.com/thread-842566-1.html 板凳
b2MassData * MassData = new b2MassData;
MassData->mass = 0.1f;
MassData->I = 0.0f;
b2Vec2 center;
center.Set(0.1f, 0.1f);
MassData->center = center;
body->SetMassData(MassData);
微云
WYPoint wy = null;
// wy.x = 1;
// wy.y = 2;
// md.center = wy;
//
// body.setMassData(md);