So when we wanna place a entity into the world we can place it down with the help of the mouse. As a result it will take the mouses x and y cords on the screen to place it on a given z distance from the 0 plane. This works well with different z values, even if you move the camera up, down, right, left back and forward.
However, if we start rotating it around the y axis or even the x axis the placement does not take this into consideration. As a result it thinks you are still looking from the same placement. Meaning we can't with the help of rotating a camera change the z value in any way. It will always be placed on the same plane.
So make the placement take rotation into consideration.
So when we wanna place a entity into the world we can place it down with the help of the mouse. As a result it will take the mouses x and y cords on the screen to place it on a given z distance from the 0 plane. This works well with different z values, even if you move the camera up, down, right, left back and forward.
However, if we start rotating it around the y axis or even the x axis the placement does not take this into consideration. As a result it thinks you are still looking from the same placement. Meaning we can't with the help of rotating a camera change the z value in any way. It will always be placed on the same plane.
So make the placement take rotation into consideration.