Skip to content

Commit

Permalink
Fixing windows warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
razterizer committed Dec 15, 2024
1 parent 31cb78c commit 4484c44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dynamics/RigidBody.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@ namespace dynamics
{
if (sprite->calc_cm())
curr_cm_local += { static_cast<float>(r_loc), static_cast<float>(c_loc) };
Ixx += math::sq<float>(r_loc);
Iyy += math::sq<float>(c_loc);
Ixx += static_cast<float>(math::sq(r_loc));
Iyy += static_cast<float>(math::sq(c_loc));
num_points++;
}
}
}
if (sprite->calc_cm())
curr_cm_local /= num_points;
curr_cm_local /= static_cast<float>(num_points);

auto density = mass / num_points;
Ixx *= density;
Expand Down

0 comments on commit 4484c44

Please sign in to comment.