Add more headings
commited
commit
c6c83dac319144b1710f4014e78402124cea8ebb
... | ... | @@ -3,34 +3,37 @@ Sets the position, rotation (angle) and range of the camera. Works in two modes: |
3 | 3 | [[/uploads/Setcamera.png]] |
4 | 4 | |
5 | 5 | ### Inputs |
6 | ||
6 | 7 | * Position: The coordinate of the camera's *focus* (defaults to the center of the world) |
7 | 8 | * Rotation: The camera angle (defaults to a [true isometric](https://en.wikipedia.org/wiki/Isometric_video_game_graphics) view of 35.264,45,0) |
8 | 9 | * Range: This value depends on the mode of the camera |
9 | 10 | |
10 | 11 | ### Settings |
12 | ||
11 | 13 | The camera uses the orthographic mode by default. If you look at the bottom right side of the hotbar, you'll find the perspective switch. |
14 | ||
12 | 15 | [[/uploads/perspective-camera-switch.png]] |
13 | 16 | |
14 | * Orthographic mode |
|
17 | ### Modes |
|
15 | 18 | |
16 | [[/uploads/ortho-camera-range.png]] |
|
19 | #### Orthographic mode |
|
17 | 20 | |
18 | 21 | Using this mode is quite easy. To calculate the Range input, multiply the amount of blocks you need to fit on the screen by 5. |
19 | 22 | |
20 | * Perspective mode |
|
23 | [[/uploads/ortho-camera-range.png]] |
|
21 | 24 | |
22 | [[/uploads/perspecive-camera-range.png]] |
|
25 | #### Perspective mode |
|
23 | 26 | |
24 | 27 | Range is the angle of the bisecotor of the [Field of View](https://en.wikipedia.org/wiki/Field_of_view_in_video_games) of the camera. The FoV of a human is considered 120°, so if you want to make first-person games, use 60° as Range. |
25 | 28 | |
26 | *** |
|
29 | [[/uploads/perspecive-camera-range.png]] |
|
27 | 30 | |
28 | Different camera modes compared: |
|
31 | #### Comparison |
|
29 | 32 | |
30 | 33 | [[/uploads/camera-modes-comparison.jpg]] |
31 | 34 | |
32 | *** |
|
35 | ### Tips |
|
33 | 36 | |
34 |
**Tip:** if you want to adapt your 2D game to the perspective view, this is the way to do it. (The Size variable defines the amount of blocks you want to fit) |
|
37 |
If you want to adapt your 2D game to the perspective view, this is the way to do it. (The Size variable defines the amount of blocks you want to fit) |
|
35 | 38 | |
36 | 39 | [[/uploads/2d-scene-to-perspective.png]] |
... | ... | \ No newline at end of file |