#Raycast bug with Gridmap edges
9 messages · Page 1 of 1 (latest)
im using raytracing to check which cell is my mouse hovering, so it gets his position and change the cell_item, but im having a problem where if my mouse is on a cell edge the raytrace start fail and keep switching between the two cells.
bump
raytracing? do you mean raycasting?
Raycast bug with Gridmap edges
@carmine lance Could you share how you achieve this? I am trying to do exactly this grid stuff but I cant get the cell!
Make the Terrain with gridmap and use raycast to get object position, you can draw the selection on top of the object
The bug that I was having is because I was putting 2 gridmap on top of each other
@carmine lance I think that is better to use the same gridmap layers! I am trying to get the cell based in the raycast collision but no success yet