I have a model with some special triangles which marks the left and right hands.
I know the position of the vertices of the triangle given a frame of the animation . What I want to do is to place a weapon on his hand, based on this special triangle , with all the rotations and translations needed .
The translation it’s not a problem (I believe). For the rotatoin I tried to used two pairs of vertices and calculate Math.atan2 , but it does not work quite right .
What is the usual approach and required Math for doing it ?
Thanks !

)