Hi, community!
I can’t say that I’ve discovered something unusual. I just want to show to beginners (like me ) the using of .clampLength()
method of THREE.Vector3()
. It allows to make an interesting effect: morphing the points from one formation to another, having the same constant speed for each vertex, when you know its start and end coordinates.
https://jsfiddle.net/prisoner849/d9ar8j07/
P.S. Long ago, I’ve seen a very similar question on SO (though I couldn’t find it), and a guy seriously wanted to make the same effect, using Tween.js for each point
P.P.S. I know it could be done with shaders, but this topic is for the beginners