How can I rotate instances (ants) to face the center of a word in TouchDesigner?

Hi, I’m working on a school project where I’m creating a visual effect with ants (instances generated using a Sprinkle SOP after an Extrude SOP). I want each ant to naturally rotate and face the center of the word they are placed around, rather than all sharing the same rotation.

I’ve attached an image of how my project currently looks—it’s not the final result I’m aiming for, but it should help illustrate my setup so far. Any advice or suggestions on how to achieve this would be greatly appreciated. Thank you!

Hi @Mat5il,

you would want to calculate the Rotate To Vector that can be applied to each instance on the Instance 2 parameter page of the Geo COMP.

For a 2D setup, this vector can be calculated my subtracting the look at point (where all your ants want to look towards) from the position of each ant. Depending on the original orientation of your ant, also choose the Forward Direction for the instance properly. Looking at your screenshot I think this would be +X.

cheers
Markus