Jump to content

Screen Size and Creation


DylanD
 Share

Recommended Posts

Hello everyone,

I am try to make a wall of meshes that go from one end of the screen to the other end of the screen, however If I use a different screen than what I developed it on the screen extends past the wall of meshes.  So my question Is how can I keep the wall all the way across the screen without decreasing the screen size.

To be more clear I am looking for a way to spawn meshes in a loop until they are just past the edge of the see able area.

https://www.babylonjs-playground.com/index.html#2IFRKC#29

In this playground I made, I have a loop that creates cubes until they're off screen, at least when the screen is short(width wise).  How could I change it so it would always go off screen even if the canvas was any size?

 

Any ideas? 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...