diff options
| author | Ray <raysan5@gmail.com> | 2016-08-06 17:09:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-08-06 17:09:57 +0200 |
| commit | 7f9513fbf41e9d340307fc0f9aeed8e5f4293a96 (patch) | |
| tree | 197829790c7dd766f2b5f44df6e5b64d895b73e4 /examples/core_3d_picking.lua | |
| parent | 3b80e2c1e03e0f87d50ca8876b50a11c7df1f56f (diff) | |
| parent | 4960e6b6d7b4cba6125cfb8bb2fef043db8e5ba5 (diff) | |
| download | raylib-7f9513fbf41e9d340307fc0f9aeed8e5f4293a96.tar.gz raylib-7f9513fbf41e9d340307fc0f9aeed8e5f4293a96.zip | |
Merge pull request #173 from ghassanpl/develop
Fixes for some Lua bugs
Diffstat (limited to 'examples/core_3d_picking.lua')
| -rw-r--r-- | examples/core_3d_picking.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/core_3d_picking.lua b/examples/core_3d_picking.lua index f3f28530..2e1dc7c4 100644 --- a/examples/core_3d_picking.lua +++ b/examples/core_3d_picking.lua @@ -49,8 +49,8 @@ while not WindowShouldClose() do -- Detect window close button or ESC -- Check collision between ray and box collision = CheckCollisionRayBox(ray, - (BoundingBox){(Vector3){ cubePosition.x - cubeSize.x/2, cubePosition.y - cubeSize.y/2, cubePosition.z - cubeSize.z/2 }, - (Vector3){ cubePosition.x + cubeSize.x/2, cubePosition.y + cubeSize.y/2, cubePosition.z + cubeSize.z/2 }}) + (BoundingBox)((Vector3)(cubePosition.x - cubeSize.x/2, cubePosition.y - cubeSize.y/2, cubePosition.z - cubeSize.z/2), + (Vector3)(cubePosition.x + cubeSize.x/2, cubePosition.y + cubeSize.y/2, cubePosition.z + cubeSize.z/2))) end --------------------------------------------------------------------------------------- |
