Jump to content

ArcRotateCamera with Beta = 0


dahlbyk
 Share

Recommended Posts

I'm building a visualization with two camera-manipulation buttons:

  1. "Top" animates the camera around and up to alpha = −π/2 and beta = 0.
  2. "Spin" animates the camera down to beta = π/4 and then animates alpha to spin around the y axis.

The user is also able to manipulate the camera with their mouse. Everything works wonderfully (seriously, kudos on this project), except using the mouse to move the camera up to beta = 0 causes an abrupt rotation to effectively alpha = −π/2. I'm trying to prevent that unexpected change in camera orientation.

I can disable the beta = 0 behavior by setting lowerBetaLimit to 0.01, but doing so prevents Top from moving the camera to precisely beta = 0. My work-around is to just use beta = lowerBetaLimit = 0.01, but I thought I'd report the beta = 0 behavior since it did not work as expected (i.e. that alpha would still be respected for orienting the camera around the y axis).

Does that help?

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