Have it like the proximity block where when it hits the block, it gets its X and Y cords and outputs them. Specifically not the block it hits cords because I’m trying to create a 3d game using ray-casting.
3 Likes
1 Like
you could find this using the angle you input into the ray cast and the distance the ray cast output in cos(x)*h and sin(x)*h
1 Like
you’d need to convert the angle into a radian first with this: a * (Math.PI/180)
1 Like