Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
question about the local position
#1
Question 
Hi,
I am using your asset namded curvy spline which is downloaded from assetstore, the version is 7.1.5, I think this is a amazing asset!
But I recently find that the local position of controll point I have setted in my script is different, so, could you tell me where the issue come from?
Here is the my script example and detail:
I use the cury spline and made into a prefab , then I use my poolmanager to load the prefab to draw the line by the controll point;
for example  I set to :
                float x=-104.008, y=7.14151 ;
vector3 vec3;
CurvySpline curvySpline;

                vec3.Set(x, roadlineHeight, y);
                curvySpline.Add(vec3);//local positon;

Then when I check the controll point ,I find the local position is not original xy ,but a little different, result is x=-104.658  y=7.156 for example,
So, is there any wrong in my code or setting? I send you the screen shot of my prefab and my prefab, maybe you can help me to check it?

Thanks!


Attached Files
.zip   NewMapline2.zip (Size: 4.4 KB / Downloads: 0)
.zip   sreenshots.zip (Size: 635.85 KB / Downloads: 0)
Reply


Messages In This Thread
question about the local position - by brucezhu99 - 09-17-2021, 10:25 AM
RE: question about the local position - by _Aka_ - 09-17-2021, 10:59 AM
RE: question about the local position - by _Aka_ - 09-18-2021, 10:54 AM
RE: question about the local position - by _Aka_ - 09-18-2021, 12:02 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Get position of all control points for a spline gekido 1 2 Yesterday, 10:08 PM
Last Post: _Aka_
  Avoiding runtime GC allocations on control point position change Ell223 8 18 02-24-2024, 10:43 AM
Last Post: _Aka_
  How could I get position in spline from "From" value in BuildRasterizedPath? Chanon 1 8 02-12-2024, 09:54 PM
Last Post: _Aka_
  Finding relative position across connected splines DekoGames 1 8 02-05-2024, 10:11 PM
Last Post: _Aka_

Forum Jump: