From f66398d3666b693caef40bf4f54a3ab71221a578 Mon Sep 17 00:00:00 2001 From: Andrew Meadows Date: Wed, 13 Aug 2014 15:06:34 -0700 Subject: [PATCH] adding comment about parameter's purpose --- libraries/shared/src/ContactPoint.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/shared/src/ContactPoint.cpp b/libraries/shared/src/ContactPoint.cpp index 2d55da9265..4c1cf7b842 100644 --- a/libraries/shared/src/ContactPoint.cpp +++ b/libraries/shared/src/ContactPoint.cpp @@ -13,6 +13,8 @@ #include "Shape.h" #include "SharedUtil.h" +// This parameter helps keep the actual point of contact slightly inside each shape +// which allows the collisions to happen almost every frame for more frequent updates. const float CONTACT_PENETRATION_ALLOWANCE = 0.005f; ContactPoint::ContactPoint() :