Skip to content

Camera documentation missing explanation about some parameters - worldCoords #113

@zell2002

Description

@zell2002

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions