Skip to content

Commit

Permalink
Merge pull request #77 from RobLoach/cast
Browse files Browse the repository at this point in the history
Fix for 3D camera first person example
  • Loading branch information
RobLoach authored Nov 6, 2020
2 parents 2245a4f + 4c0c273 commit f099773
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/core/core_3d_camera_first_person.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ int main() {

camera.BeginMode3D();

DrawPlane((Vector3){ 0.0f, 0.0f, 0.0f }, (Vector2){ 32.0f, 32.0f }, LIGHTGRAY); // Draw ground
DrawCube((Vector3){ -16.0f, 2.5f, 0.0f }, 1.0f, 5.0f, 32.0f, BLUE); // Draw a blue wall
DrawCube((Vector3){ 16.0f, 2.5f, 0.0f }, 1.0f, 5.0f, 32.0f, LIME); // Draw a green wall
DrawCube((Vector3){ 0.0f, 2.5f, 16.0f }, 32.0f, 5.0f, 1.0f, GOLD); // Draw a yellow wall
DrawPlane(Vector3{ 0.0f, 0.0f, 0.0f }, Vector2{ 32.0f, 32.0f }, LIGHTGRAY); // Draw ground
DrawCube(Vector3{ -16.0f, 2.5f, 0.0f }, 1.0f, 5.0f, 32.0f, BLUE); // Draw a blue wall
DrawCube(Vector3{ 16.0f, 2.5f, 0.0f }, 1.0f, 5.0f, 32.0f, LIME); // Draw a green wall
DrawCube(Vector3{ 0.0f, 2.5f, 16.0f }, 32.0f, 5.0f, 1.0f, GOLD); // Draw a yellow wall

// Draw some cubes around
for (int i = 0; i < MAX_COLUMNS; i++)
Expand Down

0 comments on commit f099773

Please sign in to comment.