My script now has cylinders misaligned, similar to the cylinder in the playground now being misaligned. Any thoughts on getting this playground back to working order?
Thank you!
Thank you, @JohnK. Nice targeting. You got me working, again
I had a divide-by-4 rather than a divide-by-2 in https://www.babylonjs-playground.com/#1RWE59#387. If you change the ‘2’ to a ‘4’ in this playground, it shows my issue. My cylinders are back in their rightful place. Thank you!
good
// First of all we have to set the pivot not in the center of the cylinder:
cylinder.setPivotMatrix(BABYLON.Matrix.Translation(0, -distance / 2, 0), false);
bad
// First of all we have to set the pivot not in the center of the cylinder:
cylinder.setPivotMatrix(BABYLON.Matrix.Translation(0, -distance / 4, 0), false);