Stacking CylinderGeometry with random heights

New to three.js and 3d stuff. Straight forward code, stacking cylinders on the Y axis, but have No Clue why they aren’t lining up correctly!
Here is the code: https://codepen.io/Sum-Dood/pen/ZEgaJdp

Any help would be must appreciated.

Your logic was a little off…


but you were close :).

2 Likes

Thank you so much! You have to calculate from the middle of the geometry!

1 Like