Watch
2
0
Fork
You've already forked raylib-cs
0

Update to raylib 5.5 (#279)

This commit is contained in:
JupiterRider 2024-12-21 16:00:13 +01:00 committed by GitHub
commit a3dfd57b5a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 504 additions and 124 deletions

View file

@ -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;
}