What mearrin69 said.
Also, about your question:
I want my mesh to follow the eaquation y = x² + 3
and i dont to manualy move my model to x=1, x=2 , x=3 ....
juste specify an equetion and a start position .
and the mesh/model will follow this equation
So, if I understand fine, you want to give to your model an equation path, and the entity should move on that path.
That's possible, and it's also obvious that it can't be automatic - I mean, you have to give values to x in order to get values for y.
Consider for example the gravity function; if you let an egg dropping, in real life, it will use the function:
S = (1/2)*g*t^2
Where S is the lenght traveled, g is the gravity acceleration, and t is the time.
So, as you see, you need to give values to t (time), if you want to predict where your egg will be before to meet the floor (don't try this on a expensive carpet !).
The same is applyed on your functions.
If you want to move an object accordingly with the time passed, then you have to calculate millisecs(), and get the y values accordingly:
y = t^2 + 3
Obviously, your object will move on a y axis, because the function
y = t^2 + 3
does not consider the X and Z axis, for example.
If you write instead
y = x^2 + 3
and give values to x, then your model will move on a YX plane (Z is not considered).
I hope I did not confused you !
Sergio.
Also, about your question:
I want my mesh to follow the eaquation y = x² + 3
and i dont to manualy move my model to x=1, x=2 , x=3 ....
juste specify an equetion and a start position .
and the mesh/model will follow this equation
So, if I understand fine, you want to give to your model an equation path, and the entity should move on that path.
That's possible, and it's also obvious that it can't be automatic - I mean, you have to give values to x in order to get values for y.
Consider for example the gravity function; if you let an egg dropping, in real life, it will use the function:
S = (1/2)*g*t^2
Where S is the lenght traveled, g is the gravity acceleration, and t is the time.
So, as you see, you need to give values to t (time), if you want to predict where your egg will be before to meet the floor (don't try this on a expensive carpet !).
The same is applyed on your functions.
If you want to move an object accordingly with the time passed, then you have to calculate millisecs(), and get the y values accordingly:
y = t^2 + 3
Obviously, your object will move on a y axis, because the function
y = t^2 + 3
does not consider the X and Z axis, for example.
If you write instead
y = x^2 + 3
and give values to x, then your model will move on a YX plane (Z is not considered).
I hope I did not confused you !
Sergio.