in scratchpad i made a function that makes a spiral and updates the position of a particle based on the spline you put in the input but i want the spiral to spiral along the spline, is there a way to allign the z axis of this vector to the spline so it rotates with the spline
in case anyone crosses this post and has a similar question
the solution is quite simple from the spline you use the sample from tangent WS node (this is your vector pointing from the current location to the next one)
then you make a vector 0,0,1 see this as the world up vector
use a cross product of the tangent and the world-up and you new have your local left to right vector
if your spline differs in height you should also do a cross product between the tangent and the right vector for your local up vector
you now have all your local axis’ all you now need to do is multiply whatever axis’s you want with sine and cosine