Title says it all:
I'm trying to rotate multiple faces (on Z axis) in a way to make them all face the same XY direction with Geometry Nodes.
I tried this. But for some reason it's not working. The 4 faces on the left is the starting geometry and the 3 faces on the right is the result of the geonode tree.
Unlike Geometry Nodes - Billboards (similar to track to constraint), this question is not about instances. It's about mesh faces.
The main problem here is that you can't rotate a single face, like you could for example, scale it with the Scale Elements node, so you need to find a common field for each vertex of each face and use that for rotating a face.
I thought the Normal field would do the trick but the behavior is not as expected and I can't figure out why.
--------- EDIT ----------
Robin Betts's answer bellow is definetly a solution if you don't mind about the rotation of the faces along the axis you choose as the axis the faces face. And this solution gives me this result
but I was going for something like this
so I wanted to rotate these faces around the z axis in a way so that they all face in the direction of the (1,0,0) vector. The center of rotation in my case is not important.