You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I added this function to rcore.c then recompiled I had no errors but i dont think I implemented the function correctly
So I am wanting the function to be official
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I added this function to rcore.c then recompiled I had no errors but i dont think I implemented the function correctly
So I am wanting the function to be official
The Reason would be to be able to do something like
Vector2 ScrnPos = GetScreenToWorld(Vector2{(float)GetScreenWidth(), (float)GetScreenHeight() }, v.camera);
There is a 2d version but obviously i am using a 3d camera so i cant use it
I really am not sure why there isnt a 3d version at all
i know unity has a Camera.ViewportToWorldPoint and Camera.WorldToViewportPoint meant for 3D and i used this alot
This GetScreenToWorld would be great and extremely helpful
EDIT: I have gotten Closer to Creating the Function.
Here is What I have so Far, It works to some extant
Beta Was this translation helpful? Give feedback.
All reactions