|
|
@ -21,7 +21,10 @@ int main() |
|
|
|
InitWindow(screenWidth, screenHeight, "raylib [core] example - 3d picking"); |
|
|
|
|
|
|
|
// Define the camera to look into our 3d world |
|
|
|
Camera camera = {{ 0.0f, 10.0f, 10.0f }, { 0.0f, 0.0f, 0.0f }, { 0.0f, 1.0f, 0.0f }}; |
|
|
|
Camera camera; |
|
|
|
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, 1.0f, 0.0f }; |
|
|
|
Vector3 cubeSize = { 2.0f, 2.0f, 2.0f }; |
|
|
|