- 디아4 시즌 5 1시간43분 내용 17분안에 요약해봤습니다. [35]
- FCO 봉훈 유튜브에 올라온 현직 게임 개발자피셜 [48]
- 와우 로아에서 와우 넘어온 사람이 보는 진입장벽(로아지인 의견o) [84]
- 걸그룹 1황 장원영 [18]
- 차벤 제보 했다가 역관광 중인 영상 [15]
- 걸그룹 머리에 뭐라도 얹으면 실패없는 김채원 [4]
void HelloWorld::setBox2dWorld()
{
_parent = this->addNewSprite(Vec2(240, 160), Size(0, 0),
b2_kinematicBody, nullptr, 0);
b2Body* body0 = this->addNewSprite(Vec2(240, 180), Size(32, 32),
b2_dynamicBody, "SpinningPeas.png", 1);
b2Body* body1 = this->addNewSprite(Vec2(240, 160 - 100), Size(200, 10),
b2_dynamicBody, nullptr, 2);
b2Body* body2 = this->addNewSprite(Vec2(240, 160 + 100), Size(200, 10),
b2_dynamicBody, nullptr, 2);
b2Body* body3 = this->addNewSprite(Vec2(240 - 100, 160), Size(10, 200),
b2_dynamicBody, nullptr, 2);
b2Body* body4 = this->addNewSprite(Vec2(240 + 100, 160), Size(10, 200),
b2_dynamicBody, nullptr, 2);
b2Body* body5 = this->addNewSprite(Vec2(240, 110), Size(10, 100),
b2_dynamicBody, nullptr, 2);
b2WeldJointDef weldJointDef1;
weldJointDef1.Initialize(body1, _parent, body1->GetPosition());
b2WeldJoint* weldJoint1 = (b2WeldJoint *)_world->CreateJoint(&weldJointDef1);
b2WeldJointDef weldJointDef2;
weldJointDef2.Initialize(body2, _parent, body2->GetPosition());
b2WeldJoint* weldJoint2 = (b2WeldJoint *)_world->CreateJoint(&weldJointDef2);
b2WeldJointDef weldJointDef3;
weldJointDef3.Initialize(body3, _parent, body3->GetPosition());
b2WeldJoint* weldJoint3 = (b2WeldJoint *)_world->CreateJoint(&weldJointDef3);
b2WeldJointDef weldJointDef4;
weldJointDef4.Initialize(body4, _parent, body4->GetPosition());
b2WeldJoint* weldJoint4 = (b2WeldJoint *)_world->CreateJoint(&weldJointDef4);
b2WeldJointDef weldJointDef5;
weldJointDef5.Initialize(body5, _parent, body5->GetPosition());
b2WeldJoint* weldJoint5 = (b2WeldJoint *)_world->CreateJoint(&weldJointDef5);
_parent->SetAngularVelocity(0.5f);
}
내폰젤무거워