Skip to content

Commit

Permalink
fix: fix friction
Browse files Browse the repository at this point in the history
  • Loading branch information
KalinZhang committed May 14, 2021
1 parent d51d1b8 commit 4832aa0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/json
Submodule json updated from 350ff4 to 1cd5ab
1 change: 1 addition & 0 deletions world.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ void thuai::World::addEgg(int index) {
bodyDef.type = b2_dynamicBody;
bodyDef.position.Set(static_cast<float>(eggs[index]->position().x),
static_cast<float>(eggs[index]->position().y));
bodyDef.linearDamping = 0.25f;
b2eggs[index] = b2world->CreateBody(&bodyDef);
b2eggs[index]->SetUserData(new b2bodydata(eggs[index], b2eggs[index]));
b2CircleShape dynamicBox;
Expand Down

0 comments on commit 4832aa0

Please sign in to comment.