Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Camera documentation missing explanation about some parameters - worldCoords #113

Open
zell2002 opened this issue Nov 19, 2018 · 0 comments

Comments

@zell2002
Copy link

Firstly, massive fan of your libs, been using for many years to build stuff at home.
Im currently playing with having multiple Canvas' with different objects being drawn, and each having its own Camera. My idea being I can click a Canvas, and move the camera around/zoom in n out

Moving camera and zoom both work.
But I'm trying to add camera drag using mouse button, but the worldCoords and cameraCoords don't appear to be working in this context. I've deffo used them before, and Im curious if it's because I'm not understanding all the params that can be passed in.

function camera:worldCoords(x,y, ox,oy,w,h)

What are ox and oy, and what are they used for specifically?
Also, do I need to provide width/height? As in, if I have a canvas that is 300x300, does the Camera that is rendering it, need to know that as well?

Cheers again for all your great work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant