05-02-2019, 08:22 AM
(This post was last modified: 05-02-2019, 09:03 AM by UsernameHed.)
Hello, I would like to buy your plugin, but before i buy, I have several requirement for a spline plugin (needed function), And I would like to ask you, If I may, If we can do that with your plugin, and how.
I want these function to be avaible on editor and at runtime:
For the Spline Controller:
1) I would like to set / get the position in the spline depending on a percentage (from 0 to 1), like:
2) From a given position in the world, I would like to get the closest position in the spline (by percentage OR by position), like:
3) When changing the Spline in editor, automaticly adjuste the SplineController on the Spline
4) Set All controls points of the spline on a 2D plane (and chose the axis: X/Y, or X/Z)
Thanks you !
I want these function to be avaible on editor and at runtime:
For the Spline Controller:
1) I would like to set / get the position in the spline depending on a percentage (from 0 to 1), like:
Code:
Vector3 positionInSplineByPercent = m_spline.GetPositionByPercentage(percent);
m_spline.SetPositionByPercentage(percent)
2) From a given position in the world, I would like to get the closest position in the spline (by percentage OR by position), like:
Code:
Vector3 positionInSpline = m_Spline.GetClosestPositionFromAnotherPosition(Vector3 otherPosition);
or:
float percentInSpline = m_Spline.GetClosestPositionPercentFromAnotherPosition(Vector3 otherPosition);
3) When changing the Spline in editor, automaticly adjuste the SplineController on the Spline
4) Set All controls points of the spline on a 2D plane (and chose the axis: X/Y, or X/Z)
Thanks you !