Sign in to follow this  
Bladetrick

changing camera pivot point to selected mesh

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?

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.