mirror of
https://github.com/overte-org/overte.git
synced 2025-07-24 20:05:38 +02:00
Add missing findRayIntersection arguments
This commit is contained in:
parent
c4ecd39d70
commit
f285cb4259
1 changed files with 11 additions and 7 deletions
|
@ -27,8 +27,9 @@ void AABoxCubeTests::raycastOutHitsXMinFace() {
|
|||
float distance;
|
||||
BoxFace face;
|
||||
glm::vec3 surfaceNormal;
|
||||
glm::vec3 invDirection; //FIXME -- what should this be set to?
|
||||
|
||||
bool intersects = box.findRayIntersection(origin, direction, distance, face, surfaceNormal);
|
||||
bool intersects = box.findRayIntersection(origin, direction, invDirection, distance, face, surfaceNormal);
|
||||
|
||||
QCOMPARE(intersects, true);
|
||||
QCOMPARE(distance, 0.5f);
|
||||
|
@ -46,8 +47,10 @@ void AABoxCubeTests::raycastOutHitsXMaxFace () {
|
|||
float distance;
|
||||
BoxFace face;
|
||||
glm::vec3 surfaceNormal;
|
||||
glm::vec3 invDirection; //FIXME -- what should this be set to?
|
||||
|
||||
bool intersects = box.findRayIntersection(origin, direction, distance, face, surfaceNormal);
|
||||
|
||||
bool intersects = box.findRayIntersection(origin, direction, invDirection, distance, face, surfaceNormal);
|
||||
|
||||
QCOMPARE(intersects, true);
|
||||
QCOMPARE(distance, 0.5f);
|
||||
|
@ -64,8 +67,9 @@ void AABoxCubeTests::raycastInHitsXMinFace () {
|
|||
float distance;
|
||||
BoxFace face;
|
||||
glm::vec3 surfaceNormal;
|
||||
glm::vec3 invDirection; //FIXME -- what should this be set to?
|
||||
|
||||
bool intersects = box.findRayIntersection(origin, direction, distance, face, surfaceNormal);
|
||||
bool intersects = box.findRayIntersection(origin, direction, invDirection, distance, face, surfaceNormal);
|
||||
|
||||
QCOMPARE(intersects, true);
|
||||
QCOMPARE(distance, 0.25f);
|
||||
|
|
Loading…
Reference in a new issue