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

Lock camera on player #97

Open
3top1a opened this issue Dec 22, 2020 · 1 comment
Open

Lock camera on player #97

3top1a opened this issue Dec 22, 2020 · 1 comment
Labels
controls enhancement New feature or request

Comments

@3top1a
Copy link
Contributor

3top1a commented Dec 22, 2020

You can pan around the world with the right mouse button, but that is also the button to move.
The right mouse button would become an offsetter, with the camera being at playerPos + offset

EDIT: Ctrl/Shift + right is also pan

@Karang Karang added the enhancement New feature or request label Dec 22, 2020
@extremeheat
Copy link
Member

With orbit controls you can set .target equal to the Vector3 position of the player, so when you rotate the map that becomes the center point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
controls enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants