Skip to content

Commit c01c8b0

Browse files
authored
Update Camera: revert toString() method
1 parent d411fa3 commit c01c8b0

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

jme3-core/src/main/java/com/jme3/renderer/Camera.java

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1576,7 +1576,7 @@ public Vector3f getScreenCoordinates(Vector3f worldPosition, Vector3f store) {
15761576
* <p>
15771577
* Resulting ray is in world space, starting on the near plane
15781578
* of the camera and going through position's (x,y) pixel coordinates on the screen.
1579-
*
1579+
*
15801580
* @param click2d A {@link Vector2f} representing the 2D screen coordinates (in pixels)
15811581
* @return A {@link Ray} object representing the picking ray in world coordinates.
15821582
*
@@ -1625,14 +1625,10 @@ public int getHeight() {
16251625

16261626
@Override
16271627
public String toString() {
1628-
return getClass().getSimpleName()
1629-
+ "[location=" + location
1630-
+ ", direction=" + getDirection()
1631-
+ ", res=" + width + "x" + height
1632-
+ ", parallel=" + parallelProjection
1633-
+ ", near=" + frustumNear
1634-
+ ", far=" + frustumFar
1635-
+ "]";
1628+
return "Camera[location=" + location + "\n"
1629+
+ "direction=" + getDirection() + "\n"
1630+
+ "res=" + width + "x" + height + ", parallel=" + parallelProjection + "\n"
1631+
+ "near=" + frustumNear + ", far=" + frustumFar + "]";
16361632
}
16371633

16381634
@Override

0 commit comments

Comments
 (0)