[DEV] remove an assert ==> create some eratic comportment, and coorect build after licence change
This commit is contained in:
parent
078fc33309
commit
96d6ff59d1
@ -6,6 +6,7 @@
|
||||
* @copyright 2017, Edouard DUPIN
|
||||
* @license MPL v2.0 (see license file)
|
||||
*/
|
||||
#pragma once
|
||||
#include <ephysics/body/Body.hpp>
|
||||
#include <etk/math/Transform3D.hpp>
|
||||
#include <ephysics/collision/shapes/AABB.hpp>
|
||||
|
@ -303,7 +303,11 @@ void EPAAlgorithm::computePenetrationDepthAndContactPoints(const Simplex& _simpl
|
||||
EPHY_INFO(" point=" << points[indexNewVertex]);
|
||||
EPHY_INFO("close point=" << triangle->getClosestPoint());
|
||||
EPHY_INFO(" ==>" << wDotv);
|
||||
EPHY_ASSERT(wDotv >= 0.0, "depth penetration error");
|
||||
if (wDotv < 0.0) {
|
||||
EPHY_ERROR("depth penetration error " << wDotv);
|
||||
continue;
|
||||
}
|
||||
EPHY_ASSERT(wDotv >= 0.0, "depth penetration error " << wDotv);
|
||||
float wDotVSquare = wDotv * wDotv / triangle->getDistSquare();
|
||||
if (wDotVSquare < upperBoundSquarePenDepth) {
|
||||
upperBoundSquarePenDepth = wDotVSquare;
|
||||
|
Loading…
x
Reference in New Issue
Block a user