Jump to content

changing camera pivot point to selected mesh


Bladetrick
 Share

Recommended Posts

Hail!

I was perusing the site and found the documentation on the action manager.  So I created this playground to swap the camera target on double click.

https://www.babylonjs-playground.com/#7JOOL#18

It seems to work ok but i noticed that when I change the camera target, the camera's pivot point stays the same.  How do I get it to pivot around the selected mesh?

Also, I noticed that sometimes I have to double click more than once to change target.  Is that because I'm trying to swap too fast?

 

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