Update example models_loading

This commit is contained in:
Cry dsch 2021-06-01 21:35:19 +02:00
parent f7c2d3e6cd
commit 340f2947c9

View File

@ -98,7 +98,7 @@ int main(void)
if (IsMouseButtonPressed(MOUSE_BUTTON_LEFT))
{
// Check collision between ray and box
if (CheckCollisionRayBox(GetMouseRay(GetMousePosition(), camera), bounds)) selected = !selected;
if (GetRayCollisionBox(GetMouseRay(GetMousePosition(), camera), bounds).hit) selected = !selected;
else selected = false;
}
//----------------------------------------------------------------------------------