Calculate vector of an object aligned to another object in a 3D envorionment

48 Views Asked by At

I have an object (100x100x5) with given coordinates and angles. Now I want to place another object aligned to the left/right side of the "original" object. On the X-Axis I need to substract/add 100, but how do I calculate the Y coordinate?

A basic, not 100% proportional correct, image to visualize of what I'm trying to achieve:

https://s22.postimg.org/dmutvczip/vector.png