As the title suggests, I am having a little bit of trouble aligning a plane to another poly.
Currently, I'm ray casting to find the normals of a wall I'm looking at, and applying a couple of trig commands to attempt to lie the plane flush with the wall.
Currently, to get Y angle, I use atan(xnorm/znorm), x is variant based on the outcome of Y, and Z I am forced (at this moment) to leave as 0.
I was wondering if any experienced users could help me with aligning. Ideally, I would go for a generic formula (regardless of size) to handle any direction if possible.
Naturally, since I'm posting here I have DarkPhysics so its all fine using any of those commands. But if the need arises, I have also got DarkAI and EZ_Rotate, if those are required with any commands.
And, since this *needs* to be done, if it requires me buying another plugin for other commands, it will be bought.
Cheers