Hello guys,

I have encountered a problem while playing around with Jme3 3.2 ray collision.

In some rare cases the collision distance results in Infinity.

I would like to figure out wether someone has also encountered such problems and what is the most likely cause.

I get output like this:

CollisionResults[CollisionResult[geometry=Forward (Math2D), contactPoint=(26.958435, 20.854736, 164.37305), contactNormal=(-0.4416181, -0.14222594, -0.8858584), distance=4897.3433, triangleIndex=209], CollisionResult[geometry=Forward (Math2D), contactPoint=(26.958435, 20.854736, 164.37305), contactNormal=(0.4416181, 0.14222594, 0.8858584), distance=4897.3433, triangleIndex=211], CollisionResult[geometry=Cylinder1 (Geometry), contactPoint=(-4.265259, -3.2994995, -26.009277), contactNormal=(-0.1985307, 0.2964904, 0.9341729), distance=5091.7754, triangleIndex=63], CollisionResult[geometry=Cylinder1 (Geometry), contactPoint=(-8.673401, -6.7095947, -52.887207), contactNormal=(-0.38953823, 0.073161595, -0.9180998), distance=5119.225, triangleIndex=35], CollisionResult[geometry=Cube1 (Geometry), contactPoint=(-19.889221, -15.385986, -121.273926), contactNormal=(-0.10184377, -0.11908125, -0.9876475), distance=5189.0664, triangleIndex=28], CollisionResult[geometry=Rear (Math2D), contactPoint=(-26.957642, -20.854065, -164.37305), contactNormal=(-0.4416183, -0.14222696, -0.8858583), distance=5233.082, triangleIndex=1482], CollisionResult[geometry=Rear (Math2D), contactPoint=(-26.957642, -20.854065, -164.37305), contactNormal=(0.4416183, 0.14222705, 0.8858583), distance=5233.082, triangleIndex=1480], CollisionResult[geometry=Cube1 (Geometry), contactPoint=(-Infinity, -Infinity, -Infinity), contactNormal=(0.10184595, 0.11908179, 0.9876472), distance=Infinity, triangleIndex=623]]

I have already checked the meshes involved here and I am pretty sure that there is no problem. It occurs on Blender exported meshes as well as on procedural meshes.

Regards,

Harry