|
@@ -1,6 +1,6 @@
|
|
= The jME3 Camera
|
|
= The jME3 Camera
|
|
-:author:
|
|
|
|
-:revnumber:
|
|
|
|
|
|
+:author:
|
|
|
|
+:revnumber:
|
|
:revdate: 2016/03/17 20:48
|
|
:revdate: 2016/03/17 20:48
|
|
:keywords: camera, documentation
|
|
:keywords: camera, documentation
|
|
:relfileprefix: ../../
|
|
:relfileprefix: ../../
|
|
@@ -20,7 +20,7 @@ The default com.jme3.renderer.Camera object is `cam` in com.jme3.app.Application
|
|
|
|
|
|
The camera object is created with the following defaults:
|
|
The camera object is created with the following defaults:
|
|
|
|
|
|
-* Width and height are set to the current Application's settings.getWidth() and settings.getHeight() values.
|
|
|
|
|
|
+* Width and height are set to the current Application's settings.getWidth() and settings.getHeight() values.
|
|
* Frustum Perspective:
|
|
* Frustum Perspective:
|
|
** Frame of view angle of 45° along the Y axis
|
|
** Frame of view angle of 45° along the Y axis
|
|
** Aspect ratio of width divided by height
|
|
** Aspect ratio of width divided by height
|
|
@@ -75,8 +75,8 @@ a|Normal perspective
|
|
a|cam.setParallelProjection(true)
|
|
a|cam.setParallelProjection(true)
|
|
a|Parallel projection perspective
|
|
a|Parallel projection perspective
|
|
|
|
|
|
-a|cam.getScreenCoordinates()
|
|
|
|
-a|?
|
|
|
|
|
|
+a|cam.getScreenCoordinates(worldPos)
|
|
|
|
+a|Converts the given position from world space to screen space.
|
|
|
|
|
|
|===
|
|
|===
|
|
|
|
|
|
@@ -94,8 +94,8 @@ The `flyCam` class field gives you access to an AppState that extends the defaul
|
|
----
|
|
----
|
|
|
|
|
|
Q W up forw
|
|
Q W up forw
|
|
-A S D --> left back right
|
|
|
|
-Z down
|
|
|
|
|
|
+A S D --> left back right
|
|
|
|
+Z down
|
|
|
|
|
|
----
|
|
----
|
|
[cols="2", options="header"]
|
|
[cols="2", options="header"]
|