Your line is rotating… it’s rotating around the y axis… which also happens to be the line.
Edit: I mean it’s only a guess since you haven’t actually included where direction comes from and it’s the only reason that a line wouldn’t look like it’s rotating.
Oh, heheh… you are modifying the result of getLocalRotation() instead of setting it back again. That’s a big no-no as the Geometry does not realize that the transform has been updated.
Ok but why solid geometries are rotate well in this case?
Also if I would use
[java]geometry.lookAt(tempVector, Vector3f.UNIT_Y);[/java]
does not work too.