mirror of
https://github.com/raysan5/raylib.git
synced 2026-02-04 13:19:17 -05:00
Add spacing between GetScreenToWorld2D usage example
@ -61,7 +61,7 @@ There will be times when you need to convert from screen coordinates into world
|
|||||||
|
|
||||||
This will convert a screen point into a world point for a camera. This will include zoom and scale. It is very common to use this to get the mouse position in world coordinates to do collisions or picking.
|
This will convert a screen point into a world point for a camera. This will include zoom and scale. It is very common to use this to get the mouse position in world coordinates to do collisions or picking.
|
||||||
|
|
||||||
`Vector2 mouseInWorld = GetScreenToWorld2D(GetMousePosition(),MyCamera);`
|
`Vector2 mouseInWorld = GetScreenToWorld2D(GetMousePosition(), MyCamera);`
|
||||||
|
|
||||||
### GetWorldToScreen2D
|
### GetWorldToScreen2D
|
||||||
`Vector2 GetWorldToScreen2D(Vector2 position, Camera2D camera); `
|
`Vector2 GetWorldToScreen2D(Vector2 position, Camera2D camera); `
|
||||||
|
|||||||
Reference in New Issue
Block a user