mirror of
https://github.com/raylib-cs/raylib-cs
synced 2025-06-30 19:03:42 -04:00
Update to raylib 5.5 (#279)
This commit is contained in:
@ -54,7 +54,7 @@ public class Picking3d
|
||||
{
|
||||
if (!collision.Hit)
|
||||
{
|
||||
ray = GetMouseRay(GetMousePosition(), camera);
|
||||
ray = GetScreenToWorldRay(GetMousePosition(), camera);
|
||||
|
||||
// Check collision between ray and box
|
||||
BoundingBox box = new(
|
||||
@ -68,7 +68,7 @@ public class Picking3d
|
||||
collision.Hit = false;
|
||||
}
|
||||
|
||||
ray = GetMouseRay(GetMousePosition(), camera);
|
||||
ray = GetScreenToWorldRay(GetMousePosition(), camera);
|
||||
}
|
||||
//----------------------------------------------------------------------------------
|
||||
|
||||
@ -119,4 +119,3 @@ public class Picking3d
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -35,7 +35,6 @@ public class VrSimulator
|
||||
VResolution = 1200,
|
||||
HScreenSize = 0.133793f,
|
||||
VScreenSize = 0.0669f,
|
||||
VScreenCenter = 0.04678f,
|
||||
EyeToScreenDistance = 0.041f,
|
||||
LensSeparationDistance = 0.07f,
|
||||
InterpupillaryDistance = 0.07f,
|
||||
@ -188,4 +187,3 @@ public class VrSimulator
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user