aboutsummaryrefslogtreecommitdiff
path: root/examples/core_3d_mode.c
diff options
context:
space:
mode:
authorvictorfisac <victorfisac@gmail.com>2016-02-26 14:28:05 +0100
committervictorfisac <victorfisac@gmail.com>2016-02-26 14:28:05 +0100
commit68088bc5be39beff4f9997fe0966ce30054f67c1 (patch)
treeef7a773a5cd69193abce4e635dc1555cbd9ad9b7 /examples/core_3d_mode.c
parent233f7611da96ea6bc0b7c62f6a06dacef707f9d7 (diff)
parent0dfc7fffff68b0bfafd30a86fb322073daf7fc0e (diff)
downloadraylib-68088bc5be39beff4f9997fe0966ce30054f67c1.tar.gz
raylib-68088bc5be39beff4f9997fe0966ce30054f67c1.zip
Merge remote-tracking branch 'refs/remotes/raysan5/develop' into develop
Diffstat (limited to 'examples/core_3d_mode.c')
-rw-r--r--examples/core_3d_mode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/core_3d_mode.c b/examples/core_3d_mode.c
index 40415fea..7be5dd45 100644
--- a/examples/core_3d_mode.c
+++ b/examples/core_3d_mode.c
@@ -22,9 +22,9 @@ int main()
// Define the camera to look into our 3d world
Camera camera;
- camera.position = (Vector3){ 0.0f, 10.0f, 10.0f };
- camera.target = (Vector3){ 0.0f, 0.0f, 0.0f };
- camera.up = (Vector3){ 0.0f, 1.0f, 0.0f };
+ camera.position = (Vector3){ 0.0f, 10.0f, 10.0f }; // Camera position
+ camera.target = (Vector3){ 0.0f, 0.0f, 0.0f }; // Camera looking at point
+ camera.up = (Vector3){ 0.0f, 1.0f, 0.0f }; // Camera up vector (rotation towards target)
Vector3 cubePosition = { 0.0f, 0.0f, 0.0f };