Why won't the ray cast distance change?

Here’s the link to the game, idk why the distance on the ray cast (.shadowspawner) won’t change.
Does anyone know why? I’m not seeing the reason

2 Likes

Are you wanting to detect how far away the ground is to the player? I don’t think raycasting gives a location of where it hits (that I know of) but you could attempt proximity with the closest block, I’m pretty sure it detects the X and Y coordinates of the selected object in range.

2 Likes

I do want to know how far away the ground is, but using proximity won’t work for what I am wanting to do.
I did fix it, but I needed to turn collisions on in the object that holds the Ray Cast. I guess collisions need to be on for Ray to work, but that seems really strange because the Ray is not detecting the object that is sending out the ray.

2 Likes