Game Development Reference
In-Depth Information
existent fixture
if (_body->GetFixtureList()) {
_body->DestroyFixture(_body->GetFixtureList());
}
_body->CreateFixture(&fixtureDef);
_body->SetTransform(b2Vec2(position.x / PTM_RATIO,
position.y / PTM_RATIO),
_DEGREES_TO_RADIANS(-angle));
_body->SetActive(true);
Search WWH ::




Custom Search