There is a big source of problems with
Line.set(Vector2f start, Vector2f end):
Code:
/**
* Configure the line
*
* @param start The start point of the line
* @param end The end point of the line
*/
public void set(Vector2f start, Vector2f end) {
super.pointsDirty = true;
this.start = start;
this.end = end;
vec = new Vector2f(end);
vec.sub(start);
lenSquared = vec.lengthSquared();
}
The Line should copy the vectors values not its references!
Code:
this.start.set(start);
this.end.set(end);
Thanks alot!
Greets Lufti