Getting object position along a spline (Surge)
Hi,
I’ve been trying PixelPlacement’s Surge asset and it’s pretty cool. I’m using the splines to move my GOs along a path but I can’t figure how to retrieve their position along spline .
My goal is to compare 2 objects position (percentage), in order to know which one has the most « traveled » along the spline.
I’m using Tween.Spline() to move objects.
I saw there is a GetPosition(float percentage) method but the only param it takes is a normalized percentage ; there is no GetObjectPosition(Transform) method that would return the percentage of this object.
I also tried to set my GOs as followers in the Spline component, but their percentage keeps displaying zero even during movement.
Thanx for any help.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612220728im_/https://answers.unity.com/themes/thub/images/avi.jpg)