Raycasts don't work properly with terrain at chunk borders

Reproduction Steps
I had encountered that issue in the past (10th July 2021), but resetting studio settings fixed that back then. I believe it’s because some beta introduced that issue and now that update has been fully released to all users.

You may use the below tool to fully reproduce this issue:

You may also use this script on “Castle” template place and drag around a part to locate one of regions which cause that issue.

while task.wait() do print(game.Workspace:Raycast(game.Workspace.Part.Position, Vector3.new(0, -10, 0))) end

Check also Raycast misses Terrain in a specific pattern thread for more information.

Expected Behavior
Raycast should properly detect the terrain and return hit position, normal and material.

Actual Behavior
Raycasts don’t work properly on terrain chunk borders, returning no hit result.

Here’s a view generated with minimap rendering tool I use (changed the background to red). “Blank” spots are clearly visible and form a specific pattern.


image
image

Here’s a screenshot from the studio showing the raw issue:

Issue Area: Engine
Issue Type: Other
Impact: High
Frequency: Constantly
Date First Experienced: 2021-07-10 00:07:00 (+02:00)
Date Last Experienced: 2021-10-17 00:10:00 (+02:00)

12 Likes

Thanks for the report! We’ve filed a ticket to our internal database and we’ll follow up when we have an update for you.

3 Likes

It’s been 4 months, and this is still an issue. Is there any updates?

1 Like


( Release Notes for 512 )