Hello everyone, I’m attempting to use Line2 for a small application and I’d like to implement a mirroring function over the axis. I’m struggling however to use
makeScale to flip a Line2 object over a single axis. When I apply
object.applyMatrix4(new THREE.Matrix4().makeScale(-1, 1, 1)) nothing happens.
A regular line with the same transformation applied mirrors correctly over the vertical axis but Line2 doesn’t. Weirdly enough, applying more than one variation in the scale (
object.applyMatrix4(new THREE.Matrix4().makeScale(-1, -1, 1)) in example) works and the object mirrors over multiple axis.
Here’s a jsfiddle that shows the problem: https://jsfiddle.net/waL3ed1b/
The thin line mirrors correctly with the makeScale above applies, the Line2 does not.
Now, I know that Line2 is not officially supported but is there a way to make this work? Or have I maybe stumbled into a bug for Line2?