When I try to compare the result with other Vector2 positions it allways return true. For Example, I have a clickable object, and even if I click outside of the object it returns that it is being clicked.
It’s way past bed time here. I will take a look into how Matrix.Invert() works tomorrow. Just wanted to leave this as an update.
I don’t really think all this will lead me to a solution, so pleeease for god’s sake help me
Maybe scale should have been (m_zoom, m_zoom, 1)? I don’t know.
If you are just starting with this kind of math you’d better stick to the standard methods to create a View and projection matrix (Matrix.CreateLookAt(), Matrix.CreateOrthographic()),
and the stock methods to convert from and to screen space (Viewport.Project() and Viewport.Unproject())
Thing is, when you are just starting with this kinda stuff, you have no damn clue what those standard methods are. Or how they are used. thx for your tip tho
Maybe scale should have been (m_zoom, m_zoom, 1)? I don’t know.
oh you doo because that is the solution to my problem. Thank you sir!