Skip to content
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

setFocalOffset -- How to keep the model always facing the screen #509

Open
wangguangmeng opened this issue May 30, 2024 · 2 comments
Open

Comments

@wangguangmeng
Copy link

Describe the bug

image

I noticed that when I used setFocalOffset, the angle of the model towards the screen has changed.

image

How to keep the model always facing the screen, like this:

image

Thank you

To Reproduce

...

Code

No response

Live example

No response

Expected behavior

....

Screenshots or Video

No response

Device

No response

OS

No response

Browser

No response

@yomotsu
Copy link
Owner

yomotsu commented May 30, 2024

That is intended behavior. focalOffset will translate the point of orbit, literally.
Consider using camera.setViewOffset:
https://yomotsu.github.io/camera-controls/examples/padding-with-view-offset.html

@wangguangmeng
Copy link
Author

这是预期的行为。focalOffset 将从字面上平移轨道点。考虑使用:https://yomotsu.github.io/camera-controls/examples/padding-with-view-offset.html`camera.setViewOffset`

Thank you for your reply, I am trying

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants