I have a vector in world space(e.g. let’s say it’s (0, 0, -2)). I have an object(which has orientation matrix). It has a vector in it’s local space. That vector’s local Z axis goes through the centre of it’s master object in negative direction. The vector has no orientation matrix, however, in calculations it uses axis. The axis must only use the master object’s orientation matrix, position of itself and master object.
The image should explain the problem pretty well. As you can see, I require some advanced math(not primary school - that’s why I haven’t learnt those things yet). However, I hope that somebody can help me out. Thanks!