The enemy moves as indicated by the blue line, but the raycasts will always remain in the position indicated by the red lines
Is there a way to make them rotate with the rotation of the sprite?
The enemy moves as indicated by the blue line, but the raycasts will always remain in the position indicated by the red lines
Is there a way to make them rotate with the rotation of the sprite?
yes just
Always → Extractor (This rotation) → (angle)Raycast
So if you did what I did in my lighting example inside the line object would be
(Starting Value + Rotation) - FOV(Field of View)/2
and then that would go into the “Angle” input of the ray cast
This method does take an extra object (for the line), but it does it all for you without having to set up multiple ray casts
This worked perfectly, thanks!