Sometimes the object turns out good, then again on other walls (which are facing different directions) the object is rotation wrong, behind the wall etc…
My first try on this was to use the camera rotation in relation to the wall im currently looking at. Way to complicated.
My second try was to add invisible arrows to the wall and I place the walls in a way that they always look in a certain direction (to the player) This is possible since the player will always see the wall from just one side. Then I read the world rotation of this arrow from the wall I currently want to place the object on. Worked kinda… but even if the rotation was correct the object was still not placed on the wall but behind it for example.
Im pretty sure there is a very easy solution to this, hopefully you guys can help me out