mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-25 10:22:33 -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.
|
||||
|
||||
`Vector2 mouseInWorld = GetScreenToWorld2D(GetMousePosition(),MyCamera);`
|
||||
`Vector2 mouseInWorld = GetScreenToWorld2D(GetMousePosition(), MyCamera);`
|
||||
|
||||
### GetWorldToScreen2D
|
||||
`Vector2 GetWorldToScreen2D(Vector2 position, Camera2D camera); `
|
||||
|
||||
Reference in New Issue
Block a user