@@ -368,7 +368,6 @@ TEST_CASE("[Vector3] Plane methods") {
368368 const Vector3 vector = Vector3 (1.2 , 3.4 , 5.6 );
369369 const Vector3 vector_y = Vector3 (0 , 1 , 0 );
370370 const Vector3 vector_normal = Vector3 (0.88763458893247992491 , 0.26300284116517923701 , 0.37806658417494515320 );
371- const Vector3 vector_non_normal = Vector3 (5.4 , 1.6 , 2.3 );
372371 CHECK_MESSAGE (
373372 vector.bounce (vector_y) == Vector3 (1.2 , -3.4 , 5.6 ),
374373 " Vector3 bounce on a plane with normal of the Y axis should." );
@@ -394,6 +393,8 @@ TEST_CASE("[Vector3] Plane methods") {
394393 vector.slide (vector_normal).is_equal_approx (Vector3 (-2.41848149148878681437 , 2.32785733585517427722237 , 4.0587949202918130235 )),
395394 " Vector3 slide with normal should return expected value." );
396395 // There's probably a better way to test these ones?
396+ #ifdef MATH_CHECKS
397+ const Vector3 vector_non_normal = Vector3 (5.4 , 1.6 , 2.3 );
397398 ERR_PRINT_OFF;
398399 CHECK_MESSAGE (
399400 vector.bounce (vector_non_normal).is_equal_approx (Vector3 ()),
@@ -405,6 +406,7 @@ TEST_CASE("[Vector3] Plane methods") {
405406 vector.slide (vector_non_normal).is_equal_approx (Vector3 ()),
406407 " Vector3 slide should return empty Vector3 with non-normalized input." );
407408 ERR_PRINT_ON;
409+ #endif // MATH_CHECKS
408410}
409411
410412TEST_CASE (" [Vector3] Rounding methods" ) {
0 commit comments