-
Hello, Code like this one for obtaining the mouse position in world coordinates doesn't look like it would work anymore. Any hint or API of how it can be done with this camera? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You need to convert the cursor position from being a cursor position on the window, to a cursor position on the The way you do this depends on what |
Beta Was this translation helpful? Give feedback.
You need to convert the cursor position from being a cursor position on the window, to a cursor position on the
PixelCamera
's viewport.The way you do this depends on what
ViewportSize
you use (I will probably implement a function for this in the future). But forViewportSize::PixelFixed
you can just divide the cursor position by thevalue
inPixelFixed(value)