-
-
Notifications
You must be signed in to change notification settings - Fork 36.1k
TrackballControls: extend OrbitControls #17858
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
I would suggest renaming Note that // I would merge this PR if the implementation here is preferred over that of #17857. |
|
I would also consider renaming the file import { OrbitControls } from './jsm/controls/CameraControls.js';
import { MapControls } from './jsm/controls/CameraControls.js';
import { TrackballControls } from './jsm/controls/CameraControls.js'; |
As mentioned here #17857 (comment), I would not start doing this. I would divide this task into two parts. First, align the API in one release via #17842. Next, consolidate the implementation into a single module ( |
|
This version has different behavior and a different keyboard API. See #17858 (comment). Users will complain it is different, so that is why It is a good idea to retain access to the legacy version for awhile. |
|
@Mugen87 Perhaps it is not clear to you that this is NOT just a port of Users will not be happy to have That is why I suggested retaining And that is why there is no need to change the API of That is how I think about it, anyway. :-) |
|
Well, I see this differently and think introducing Merging #17842 will not change the controls behavior and prepare users for the API shift. @mrdoob It would be great if you can make a decision here since I feel the discussion is somewhat stuck. |
|
@mrdoob do you think it would be possible to review this and the alternatives PRs( #17842, #17857 ) for I believe everyone is on-board with the final changes, we just need a decision on how to proceed with them and which implementation we should go with. TL:DR of what's been discussed: Given that This involves updating the "legacy" property names, like There has been two proposed paths for this:
There's also the suggestion of changing the base class from |
|
Closing in favor of #18483. |
As suggested in #17842 (comment).
#17857 is an alternate implementation. I am posting this for comparison purposes, not at as competing PR.
I was never happy that the original
TrackballControlsmodified the cameraupdirection.upis not changed in this PR.In any event, I would NOT immediately remove
TrackballControls.js, since current users rely on its API, which is different from that inOrbitControls.js.