Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
daid committed Oct 16, 2022
1 parent fb8c303 commit bf6fc11
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/collisionable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,8 @@ void Collisionable::createBody(b2Shape* shape)
bodyDef.type = static_physics ? b2_kinematicBody : b2_dynamicBody;
bodyDef.userData = this;
bodyDef.allowSleep = false;
bodyDef.position = v2b(this->position);
bodyDef.angle = glm::radians(this->rotation);
body = CollisionManager::world->CreateBody(&bodyDef);
}

Expand Down

0 comments on commit bf6fc11

Please sign in to comment.