Hi , i would like to

rotate an object_or_vertex using another object local-orientation ?

In the image, i want to rotate the “greycube”, along the X of the “greenbar” .

im trying to, rotate the vector-distance between them

to get the location, with bad result.

Also i have no idea of how rotate the “rotation”.

Right now i understand that coordinates of vertex are “local” (they depend on the transform)

so to obtain the realworld 3Dlocation

i have to multiply them for the matrix of the object. ( Little test with bluecube )

Can i use the matrix to obtain the rotation too?

thanks for your time