My question is I have to take 1/3rd location as point from 1 to 2 and 3 to 2 points
And also i want to update my spline mesh on my spline only.Please help me to solve these issues
What I am doing in the first section of the above screenshot is as follows:
Getting the distance of the inbound spline point along the entire spline, then taking the distance of the previous spline point to get a number that can be divided by 3 to get a third of that section length.
Then, since you want this to be 2/3 of the distance along this section of the spline, we need to times the 3rd we got by 2.
Since we only have a section of the spline now, we need to add it back to the rest of the spline which comes before the inbound index. Finally we can get the location from this using the ‘GetLocationAtDistanceAlongSpline’ and use this to create the spline point.
The bottom section is very similar, but does not need to be multiplied by 2 since we only want the first 3rd of the spline section.
I really hope this helps and let me know if you have any issues with this setup