Update to raylib 5.5 (#279)
This commit is contained in:
parent
7b5b322a5b
commit
a3dfd57b5a
23 changed files with 504 additions and 124 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue