-
Xpresso: scale objects in relation to the distance between 2 Points
Hello forum,
i need help with xpresso:
for an info-graphic i want to show the relationship between three different objects as a pythagorean triangle (see included picture).
The idea is to show the relationship between object A and object B, while C stays the same. That means if Object A gets smaller, object B has to scale bigger in order to keep the 90° angle between the two. (Actually object A and B are more complex than the cubes in the example picture, these are just placeholders for a block with a house/factory etc. on it.)
So my idea was to tie the points that connect the corners between A and B together and then measure the distance between the points on the corners of A/B and A/C and use that ratio to scale both objects. There may be better ways than this and i would be grateful, if someone could point me into the right direction. Since i am new to xpresso, i don’t even know which nodes to add. I thought vectors may be a good way to start, but i have no idea how to build something like that in xpresso. Also i want the corner of A/B to stay on that spline in order to keep the 90° angle.
I hope you understand my projekt and i will be very grateful for everybody who is taking the time to school me.
Have a good time, Oskar