reactphysics3d icon indicating copy to clipboard operation
reactphysics3d copied to clipboard

Raycast penetrating a little too far, like maybe an extra 0.09

Open pauls0416 opened this issue 11 months ago • 2 comments

I have a terrain that I generated a heightfield from and I noticed that casting rays downward onto the terrain seemed to go below the height at the particular X-Z by about 0.09f. Thinking my heightfield's collider was simply off by a little bit, I added other objects (e.g. Box Colliders) and I noticed they were also off by about the same amount. Is this a known issue with the library or raycast? If so, what can I do to fix it? Thanks in advance.

pauls0416 avatar Dec 20 '24 03:12 pauls0416

Thanks a lot for reporting this issue. I will need to check that on my side.

DanielChappuis avatar Jan 08 '25 22:01 DanielChappuis

Hello. I cannot reproduce this issue on my side. In my test, it seems correct. Do you have a small piece of code that shows the issue (for instance with a small height field?

DanielChappuis avatar Mar 28 '25 06:03 DanielChappuis