Update to raylib 5.5 (#279)
This commit is contained in:
parent
7b5b322a5b
commit
a3dfd57b5a
23 changed files with 504 additions and 124 deletions
|
|
@ -104,7 +104,7 @@ public class ModelLoading
|
|||
if (IsMouseButtonPressed(MouseButton.Left))
|
||||
{
|
||||
// Check collision between ray and box
|
||||
if (GetRayCollisionBox(GetMouseRay(GetMousePosition(), camera), bounds).Hit)
|
||||
if (GetRayCollisionBox(GetScreenToWorldRay(GetMousePosition(), camera), bounds).Hit)
|
||||
{
|
||||
selected = !selected;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue