So, I am making a tower defense game in 3D, and I am trying to figure out how to place blocks based on mouse position and the terrain point that would intersect with the mouse if it wasn't in 2D space and went out from the camera.

I was thinking of using a RayCast3D and setting it's position to the mouse position using the camera to give the 3rd Vector. However, I'm not sure if A this will work, and B how to get the direction to cast the ray.

I thought about placing a node behind the camera as a child and calculating the direction using those two position Vectors. However, that all seems overly complicated to place a block I the world.

    xyz Oh cool! I think that is what I am looking for! Thanks!