diff options
| author | Ray <[email protected]> | 2021-05-31 18:32:35 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-05-31 18:32:35 +0200 |
| commit | 9cc2cee9367363b6b35c3dae2d63b2838e2ae9d2 (patch) | |
| tree | bbdc9f3d10b8c9c13b597f80e17658797c968981 | |
| parent | b359a1575e9adaab886e906fe8c24e665b3852ca (diff) | |
| download | raylib-9cc2cee9367363b6b35c3dae2d63b2838e2ae9d2.tar.gz raylib-9cc2cee9367363b6b35c3dae2d63b2838e2ae9d2.zip | |
Update text_draw_3d.c
| -rw-r--r-- | examples/text/text_draw_3d.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/text/text_draw_3d.c b/examples/text/text_draw_3d.c index bc4c5529..a579a528 100644 --- a/examples/text/text_draw_3d.c +++ b/examples/text/text_draw_3d.c @@ -191,10 +191,10 @@ int main(void) Ray ray = GetMouseRay(GetMousePosition(), camera); // Check collision between ray and box - bool collision = CheckCollisionRayBox(ray, + RayCollision collision = GetRayCollisionBox(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 }}); - if (collision) + if (collision.hit) { // Generate new random colors light = GenerateRandomColor(0.5f, 0.78f); |
