Raycast Miss

Greetings,
We have a problem with PhysX raycasts missing a lot, even in obvious places. Please see this video (use fullsceen for detail):

This is our test scene, height map and a few kinematic actors. Purple is visualisation data from PxScene, red ball is drawn on raycast hitpoint. (Terrain tag is our old slow heighmap raycast)

As you can see, most of raycasts fail and miss both heightfield and buildings. However, when they succeed, they are correct.

This is how raycast is called:

physx::PxRaycastBuffer buffer;
if ( m_Scene->raycast( position,direction, 1e7, buffer ) )
{
	hit = toGlm( buffer.block.position );
	return true;
}
return false;

And Image from PVD:

https://imgur.com/a/FJHXQja

As you can see, both visualisation data and PVD show that all actors are present.

Has anyone seen similar problem? Any ideas what are we doing wrong?

Thanks

Hi,
there was an edge case when raycasts against HF missed, but that does not sound like this problem. But to be sure, do you have the latest code from Github please?

We have not seen issues like this.

Regards,
Ales

Thanks Ales,
we were using 3.4.1 release. After updating to latest 3.4.2 from git everything works ok.

Problem Fixed.