# How to orient instances on a curve towards next point and not along tangent with geometry nodes

I'm trying to intance objects along a curve, but every setup I find uses the tangent of the curve, this is what I'm trying to achieve:

.

I've already tried these methods Method 1 Method 2, but both of them make the instance follow the tangent of the curve. Here's my current setup:

• Would this geometry nodes tutorial by Joey Carlino help? youtube.com/watch?v=T_ZzO86dBIA Commented Dec 20, 2022 at 0:36
• Have you already tried this variant? blender.stackexchange.com/a/259117/145249 Commented Dec 20, 2022 at 0:58
• Hey @JohnEason I've tried this after you mentioned it, it uses the vector tangent, so sadly it doesn't work for me Commented Dec 20, 2022 at 1:10
• Hey @quellenform, I tried it and it also didn't work Commented Dec 20, 2022 at 1:10
• Ok. Worth a try! :^( Commented Dec 20, 2022 at 9:02

This version subtracts the Position at Index of the resampled curve from the Position at Index +1, and uses that vector to align the instance at Index:

The Length of that vector could be used to stretch (Scale) the instances exactly between points, if that's what you wanted.

If you sometimes had to deal with cyclic curves, that would additionally require a Switch on Is Cyclic, to include an instance on the curve's last point.

The stretch and cyclic features are included in the .blend:

Very similar to Fred's answer, just another approach:

Here I simply subdivide the curve with Subdivide Curve, then transfer the tangents of the preceding points back to the points at which an instantiation is to take place, and ultimately use these tangents to create a rotation for the instances.

(Blender 3.2+)

May be another approach will work for you, it's less elegant for sure but any way.

Just resample the curve 2 times, the first is the curve definition you need (d), now resample it a second time by (2*d)-1, it will give you intermediates points in the center of the segment obtain with the first resample. Then use Curve to points. Now you must delete all the points made with the first resample they are odd so you can easily select them with a modulo.

I hope it will help.

Edit: I have change the .blend, now the length of the instances match the length segment, almost...

• This one almost works, but the moment you have something that's not the right length it goes wrong. Commented Dec 20, 2022 at 20:13
• Ok, I try to edit the blend with the right length this time... Commented Dec 21, 2022 at 7:58