#Raycast bug with Gridmap edges

9 messages · Page 1 of 1 (latest)

carmine lance
carmine lance
#

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.

carmine lance
#

bump

steel fjord
#

raytracing? do you mean raycasting?

carmine lance
#

Raycast bug with Gridmap edges

modern stratus
#

@carmine lance Could you share how you achieve this? I am trying to do exactly this grid stuff but I cant get the cell!

carmine lance
carmine lance
modern stratus
#

@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