How is the lookvector of a union determined?

I was playing with unions and had a thought, how is the lookvector/cframe of a union determined?

I looked at one other post with the same question:

https://devforum.roblox.com/t/how-is-union-cframe-determined/14739

if I read it correctly,the game selection determines the new cframe for the union. I tried testing this but the results are inconsistent.

I took 3 parts and unioned them.
each part has a different orientation and a different lookvector. each time I make a new union the lookvector for the new union appears to be random and I could not find a pattern.

does anyone know how the cframe is acually determined? and if it can be controlled?

I believe that it is either determined by the last object or first object selected, although I am not certain.

1 Like

it looks like the first object selected. I had to shift click each part rather than group select to notice this.

2 Likes

Yeah, if you ever want to choose the direction a Union’s LookVector is oriented, put a Negated Part in the same Model that the Union is located (but not inside the Union so it doesn’t affect the shape of the Union), and orient the Negated Part the way you want the LookVector facing. Select the Negated Part, then the Union, and select the Union tool. Your Union should now be facing the direction of the Negated Part.

6 Likes