Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function mousePosition(camera: Sup.Camera) {
- var mouse = Sup.Input.getMousePosition();
- mouse.x = mouse.x * camera.getOrthographicScale() * 0.5 * camera.getWidthToHeightRatio();
- mouse.y = mouse.y * camera.getOrthographicScale() * 0.5;
- return mouse;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement