Jump to content

particle fountain fixed position inside canvas


Recommended Posts

I would like to set the particle fountain in fixed position inside the scene 

so vien if i zoom in / out or rotate the scene buy fountain should remain in the same place, center bottom of the scene

i try to attach the fountain to the camera but in can't be exactly in the same position since it should have a fixed distance from the font of the camera

i edit this playground adding 

scene.registerBeforeRender(function () {
				//fountain.position = camera.position;
				fountain.position.x = camera.position.x-13;
				fountain.position.y = camera.position.y;
				fountain.position.z = camera.position.z;


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.

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.


  • Recently Browsing   0 members

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