Added viewport independent raycast (#3709)
* added viewport independent raycast * Renamed GetMouseRayEx to GetViewRay
This commit is contained in:
parent
f033b30703
commit
9a5dddc311
2 changed files with 12 additions and 5 deletions
|
@ -1050,6 +1050,7 @@ RLAPI void UnloadShader(Shader shader); // Un
|
|||
|
||||
// Screen-space-related functions
|
||||
RLAPI Ray GetMouseRay(Vector2 mousePosition, Camera camera); // Get a ray trace from mouse position
|
||||
RLAPI Ray GetViewRay(Vector2 mousePosition, Camera camera, float width, float height); // Get a ray trace from mouse position in a viewport
|
||||
RLAPI Matrix GetCameraMatrix(Camera camera); // Get camera transform matrix (view matrix)
|
||||
RLAPI Matrix GetCameraMatrix2D(Camera2D camera); // Get camera 2d transform matrix
|
||||
RLAPI Vector2 GetWorldToScreen(Vector3 position, Camera camera); // Get the screen space position for a 3d world space position
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue