Skip to content

Commit e63fb12

Browse files
committed
xrPhysics/Physics.cpp: use std infinity instead of just flt_max
1 parent 82c19a1 commit e63fb12

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/xrPhysics/Physics.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,8 @@ IC static int CollideIntoGroup(
248248
}
249249

250250
if (pushing_neg)
251-
surface.mu = flt_max; // dInfinity
251+
surface.mu = std::numeric_limits<dReal>::infinity();
252+
252253
if (do_collide && collided_contacts < MAX_CONTACTS)
253254
{
254255
++collided_contacts;

0 commit comments

Comments
 (0)