I am trying to detect the curvature radius of a closed bézier curve and translate those changes into moving a cube and its position. So, performing a mapping between the curve radius and the position/translation of the cube.
In order for this to work, I am trying to retrieve index n
n+1
and n+2
, subtract both position vertices vectors and get the dot product, so that we get the angle between the two vectors. Then, I would take the sinus of this angle and multiply it by a factor in the "y" position of the cube translation.
Here I offer snapshots of my geometry nodes network. Im kind of stuck. Plus, im trying to make it get evaluated at each frame in the timeline. Nothing happens.