Thanks for all the answers, this was what I was hoping for.
Looking back at Sage's video as well as what Thrack and Hi5er posted, I think I did something like that, tried it out on a bot where I tried stacking for half an hour before and got the stack done in 2 minutes.
Yesterday I did some stacking experiments and got the following done:
The top one is almost stacked at the same position. I've never BFE'd before but I think those are the lines that show position:
0
0
1
0.0729231 0 0.0435736
0.707107 0 0 0.707107
0 0
Battery
Components\supervolt battery.txt
0
0
1
0.0729036 -1.19209e-007 0.0464111
0.707107 0 0 0.707107
0 0
Battery
Components\supervolt battery.txt
0.0729231 vs 0.0729036 (0.0000195 difference) and 0.0435736 vs 0.0464111 (0.0028375 difference).
Looks almost like it's on the same place.
Originally I was going to show this in my showcase thread and ask if I can BFE the supervolts now because it's getting a bit annoying to stack them.
I'd much rather spend that time building new designs and other stuff, and if I've done that postiton once, I should be able to replicate that in theory, right?
The position differences(if I'd BFE them, I'd add the difference as well) are so close that it would most likely make no difference to a perfectly stacked one unless someone starts adding a super zoom which allows us to do the placement even more precise.
As for Stacking itself, like Silverfish mentioned, it's completely random.
Originally I thought that stacking would work if you positioned a component right inside another(collision detection would probably fail then, most likely because it's coded to check if anything is in the way 0.0(..)1 from the component) however it was quickly shown that this isn't the case.
The fact that I got the second stack by rotating the battery enough as well as originally finding a stack for the second one, but after 5 or 6 times it wouldn't be found again, makes me believe that you somehow glitch the collision detection which tells the game that you are allowed to put something there/collision works at that point.
RA2 seems to use a very high value for positioning, which is a waste, don't think you would be able to position stuff that precisely unless you glitch with the camera angles, a smaller grid or
, even a bigger one, would've saved a lot of space, made positioning easier and maybe reduce the online lag, but I don't think I'm the first one questioning what funny stuff the developers were using during development. Most likely has to do with the game being rushed for release.
The problem for me has been getting that flash(think the big issue here is hitting that one spot, think most camera angles will have one), once I see it I can usually find it in little time, however the horizontal positioning seems to finally help with that, so hopefully that allows easier stacks now.