camon no bady no
you can take a look at jmetest.curve.TestBezierCurve to see how to create a bezier curve or jmetest.input.action.TestNodeController for lines and points.
maybe you should try the CatmullRomCurve first. they are easier and i use them all the time (yes, thats an argument ;))
http://www.jmonkeyengine.com/jmeforum/index.php?topic=4077.0
Edit: don't take it too seriously ;)
This i want to do.
C_System is static image and POINT_1 and 2 are muving with Slide up there
I think he just wants to move a line left or right…
i think he wants to move two visible points (dots), by moving the slider, along the line.
Yes
take a look at the classes:
com.jme.scene.Point
com.jme.scene.Line
they let you visualize points and lines.
to define the lines and get the position of the points, you have to use a Curve, like the BezierCurve or the CatmullRomCurve (search the forum for that).
When you set up your curve you can get the position of your points with:
curve.getPoint(value);
whereas 'value' has to be between 0.0 and 1.0.
0.0 as a parameter is the most 'left' point on the line and 1.0 is the most 'right' point of the line. like that you can even have curved lines and points following it. :wink:
so long,
Andy