Jump to content

ArcRotate Camera Custom Input to move LockedTarget


Recommended Posts

Howdy friends,

Got an issue I'm trying to sort out with how I want to customize the input controls for the ArcRotate Camera. I'd like to take the existing ArcRotate Camera and keep the Alpha inputs standard, but update the Beta inputs to move the lockedTarget of the camera. So imagine "scrolling" the canvas would move the camera and instead of move the Beta of the camera. Unclear where to begin on this.

@Deltakosh I'd setup a playground but given it wouldn't be much more than the default ArcRotate template I've not done that here.

Thanks for any help/suggestions!


Link to comment
Share on other sites

21 hours ago, Wingnut said:

This is pretty clever @Wingnut @Deltakosh! And it's super performant. It's nice that it picks up the inertial properties of the angularSensibility.

For the last piece...I was able to achieve my final effect by doing the same for radius as well. (Luckily I'm using an orthographic camera mode so I don't need to make use of the radius). 

Check it out:


Buttery smooth! Thanks as always pals!


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