If i use the updatePoints function of a line shape it updates the grafical representation but not its internal variables for start and end point.
[java] Line testLine = new Line(Vector3f.ZERO, Vector3f.ZERO);
testLine.updatePoints(Vector3f.ZERO, new Vector3f(10, 10, 10));
System.out.println("" + testLine.getEnd());[/java]
Line l = new Line(new Vector3f(0f,0f,0f), new Vector3f(1f,1f,1f));
System.out.println(l.getStart());
System.out.println(l.getEnd());
l.updatePoints(new Vector3f(2f,2f,2f), new Vector3f(3f,3f,3f));
System.out.println(l.getStart());
System.out.println(l.getEnd());
Looks like the line class has a bug in that it doesn’t retain the values passed to updatePoints() but it does update the mesh. So the line will look right but getStart() and getEnd() will be incorrect.
…which is exactly what the first post in this thread states. I guess no one ever submitted a patch because it’s a relatively minor issue.
I just found this thread, because my (graphical) lines are not updated.
So its probably my mistake after all and dug out this thread for no reason, sry.