Jump to content

mesh event help requested


HunsingerUK
 Share

Recommended Posts

Hi everyone, I'm relatively new to babylon js. 

 

I'd like to make a space environment that has many star meshes. 

 

I'd like for each star to have a default size but if the camera gets close enough to the star, increase the size of that star.

 

I can create the environment with many stars just fine. My initial attempts at adding a prototype function, to my star type, to do this isn't working. Any advice to point me in the right direction would be appreciated.

 

Thanks.

Link to comment
Share on other sites

Thanks David,

 

Each of the stars in my star class have planets, and animation, and then each of the planets will have the possibility to have moons and/or rings. But at a distance, I think that all of that (planets, animations, etc...) would be pointless to have going because I'm not going to be able to see them and it will just waste performance - that's my thought at least. 

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...