I have a question regarding nPartciles and Instances. Before I start, I am a Z-up user due to my architectural background. I have a general setup / Workflow for instancing geometry and orient them correctly to the surface normal with and without random rotation which works perfect (See first picture).
Initial Setup, Align to Surface normal, random rotation around Normal
I am currently looking to populate a wall with plants. The plants are modeled/hanging so that they look like gravity is affecting them on one side. Therefor a orientation to the surface normal works still fine, but the random rotation, or the default rotation doesnt work anymore. Ideally all the plants need to be rotated so that they are hanging downwards.
My problem is that i cannot figure out the default rotation of the object after instancing and aligning to the surface normal. If i could get the 2nd vector of the nparticle, i could calculate(with some crossVec) the missing angle and rotate them into place.
Has anyone an idea on how to figure out the missing rotation, or another workflow for doing a proper 2-axis (Plane) orientation?
Thank you in advance.