Skip to content

Commit

Permalink
Merge pull request #90 from fkanehiro/set_default_mass_properties
Browse files Browse the repository at this point in the history
set default mass properties
  • Loading branch information
fkanehiro committed Jan 22, 2016
2 parents ba81685 + 9aa3cac commit de74052
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/ModelLoader/BodyInfo_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,13 @@ void BodyInfo_impl::loadModelFile(const std::string& url)
linfo.jointAxis[i] = 0;
linfo.translation[i] = 0;
linfo.rotation[i] = 0;
linfo.centerOfMass[i] = 0;
}
linfo.jointAxis[2] = 1;
linfo.rotation[2] = 1; linfo.rotation[3] = 0;
linfo.mass = 0;
for (int i=0; i<9; i++) linfo.inertia[i] = 0;


Matrix44 E(Matrix44::Identity());

Expand Down

0 comments on commit de74052

Please sign in to comment.