I think my problem is similar to: rotating an Orient object to the tangent of the spline point in THREE.JS , but I cannot access jsfiddle correctly, and I struggled with the second part of the explanation.
Basically, I created this jsfiddle: http://jsfiddle.net/jayfield1979/qGPTT/2/ , which shows a simple cube following the path created by the spline using SplineCurve3 navigate use the standard TrackBall mouse interaction.
Positioning a cube along a path is simple. However, I have two questions.
First, I use spline.getTanget( t ) , where t is the position along the path so that the cube rotates (the Y axis is just like UP). I think something is missing from me, because even if I extract the .y property of the tangent tangent, the rotation still seems to be turned off. Is there any numbering that needs this?
Secondly, the speed is very diverse along the way, obviously, a lot more points fit into the creation of denser curves, but I was wondering if there is a way to reorganize the path to a more even distribution of spaces between points? I came across the reparametrizeByArcLength function, but tried to find an explanation of how to use it.
Any help or explanation of a little mathematical dummy would be greatly appreciated.
source share