Skip to content

Commit

Permalink
xrPhysics/Physics.cpp: use std infinity instead of just flt_max
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed May 13, 2018
1 parent 82c19a1 commit e63fb12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/xrPhysics/Physics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,8 @@ IC static int CollideIntoGroup(
}

if (pushing_neg)
surface.mu = flt_max; // dInfinity
surface.mu = std::numeric_limits<dReal>::infinity();

if (do_collide && collided_contacts < MAX_CONTACTS)
{
++collided_contacts;
Expand Down

0 comments on commit e63fb12

Please sign in to comment.