mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 11:28:03 +02:00
fix bitrot from changed glm::vec3 API?
This commit is contained in:
parent
9763566bdb
commit
39538db63a
1 changed files with 3 additions and 3 deletions
|
@ -277,7 +277,7 @@ void GeometryUtilTests::testSphereCapsulePenetration() {
|
||||||
glm::vec3 capsuleEnd(0.0f, 10.0f, 0.0f);
|
glm::vec3 capsuleEnd(0.0f, 10.0f, 0.0f);
|
||||||
float capsuleRadius = 1.0f;
|
float capsuleRadius = 1.0f;
|
||||||
|
|
||||||
glm::vec3 penetration(glm::vec3::_null);
|
glm::vec3 penetration(0.0f);
|
||||||
bool hit = findSphereCapsulePenetration(sphereCenter, sphereRadius, capsuleStart, capsuleEnd, capsuleRadius, penetration);
|
bool hit = findSphereCapsulePenetration(sphereCenter, sphereRadius, capsuleStart, capsuleEnd, capsuleRadius, penetration);
|
||||||
QCOMPARE(hit, true);
|
QCOMPARE(hit, true);
|
||||||
QCOMPARE_WITH_ABS_ERROR(penetration, glm::vec3(-0.5f, 0.0f, 0.0f), EPSILON);
|
QCOMPARE_WITH_ABS_ERROR(penetration, glm::vec3(-0.5f, 0.0f, 0.0f), EPSILON);
|
||||||
|
|
Loading…
Reference in a new issue