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

How to scale the world? #1278

Open
MaxMinimus opened this issue Feb 9, 2024 · 2 comments
Open

How to scale the world? #1278

MaxMinimus opened this issue Feb 9, 2024 · 2 comments

Comments

@MaxMinimus
Copy link

MaxMinimus commented Feb 9, 2024

How to scale the world to get the effect of raising the camera above the world?

I do this:

Composite.scale(engine.world, 0.01, 0.01, {x:0,y:0}, true)

but it doesn't work

@MLH-AIDS
Copy link

lookcenter={x:0,y:0}; Render.lookAt(render, { min: { x: lookcenter.x-render.options.width/2, y: lookcenter.y-render.options.height/2 }, max: { x: lookcenter.x+render.options.width/2, y: lookcenter.y+render.options.height/2 } });
For reference only.

@MaxMinimus
Copy link
Author

lookcenter={x:0,y:0}; Render.lookAt(render, { min: { x: lookcenter.x-render.options.width/2, y: lookcenter.y-render.options.height/2 }, max: { x: lookcenter.x+render.options.width/2, y: lookcenter.y+render.options.height/2 } }); For reference only.

does not 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

2 participants