Sara Posted August 28, 2021 Share Posted August 28, 2021 Hello good time I wanted to know exactly what wodrldwidth and worldheight are and what is the maximum size I can set for them? Quote Link to comment Share on other sites More sharing options...
Exca Posted August 30, 2021 Share Posted August 30, 2021 What you mean by world? If you mean the maximum size the canvas can be, then those limits come from the hardware that is rendering. Usually I wouldnt go over 4k in that. If on the other hand you mean how large a single container can be (eg. how far away can a sprite be for example) then that would be the maximum floating point value that javascript can handle. So something like 1.7976931348623157e+308. Though at that point a lot of precision is lost. Or are you using some library on top of pixi that has some world defined? As there's no real world definition directly in pixi. Quote Link to comment Share on other sites More sharing options...
Sara Posted August 30, 2021 Author Share Posted August 30, 2021 Hello, thank you very much for your answer I use pixi-viewport, there is a concept called worldwidth, worldheight that I do not know exactly what it does Quote Link to comment Share on other sites More sharing options...
Exca Posted August 31, 2021 Share Posted August 31, 2021 14 hours ago, Sara said: Hello, thank you very much for your answer I use pixi-viewport, there is a concept called worldwidth, worldheight that I do not know exactly what it does Looking at the sources it looks like that affects how the viewport clamps & how it scales when screen is larger than world. Don't see any limitations on its size. Someone more familiar with pixi-viewport could give a more detailed explanation, havent used that plugin myself. Quote Link to comment Share on other sites More sharing options...
Sara Posted August 31, 2021 Author Share Posted August 31, 2021 Thank you very much for taking the time to guide me? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.