Index: source/gameengine/Ketsji/KX_RayCast.cpp =================================================================== --- source/gameengine/Ketsji/KX_RayCast.cpp (r‚vision 13579) +++ source/gameengine/Ketsji/KX_RayCast.cpp (copie de travail) @@ -77,6 +77,14 @@ if (callback.RayHit(info, result_point, result_normal)) return true; + // There is a bug in the code below: the delta is computed with the wrong + // sign on the face opposite to the center, resulting in infinite looping. + // In Blender 2.45 this code was never executed because callback.RayHit() always + // returned true, causing the ray sensor to stop on the first object. + // To avoid changing the behaviour will simply return false here. + // It should be discussed if we want the ray sensor to "see" through objects + // that don't have the required property/material (condition to get here) + return false; // skip past the object and keep tracing /* We add 0.01 of fudge, so that if the margin && radius == 0., we don't endless loop. */