09-17-2021, 10:25 AM
(This post was last modified: 09-17-2021, 11:13 AM by brucezhu99.)
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!
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!