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

[gui] Add more camera controls #4212

Merged
merged 2 commits into from
Feb 14, 2022

Conversation

YuCrazing
Copy link
Member

@YuCrazing YuCrazing commented Feb 6, 2022

According to the convention of game engines, and also for the user experience, I add two camera controlling commands :

  • q: Move camera down vertically.
  • e: Move camera up vertically.

@netlify
Copy link

netlify bot commented Feb 6, 2022

✔️ Deploy Preview for docsite-preview ready!

🔨 Explore the source changes: e04577b

🔍 Inspect the deploy log: https://app.netlify.com/sites/docsite-preview/deploys/62008dc0e3ac3b0007128baa

😎 Browse the preview: https://deploy-preview-4212--docsite-preview.netlify.app

@neozhaoliang
Copy link
Contributor

I don't think we should bind these keys for special purposes here, just let the users do that. (Also q is often used for exiting and e for shooting)

@YuCrazing
Copy link
Member Author

@neozhaoliang, thanks for your suggestion.

This is not a default setting, this preset is enabled only when users use

camera.track_user_inputs(window=..., movement_speed=..., hold_key=...)

And in that situation, I think users wish they can control the camera in a simple and flexible way. So I think this change is a preferred way for users.

@qiao-bo
Copy link
Collaborator

qiao-bo commented Feb 7, 2022

/rerun

@bobcao3 bobcao3 merged commit ec8887d into taichi-dev:master Feb 14, 2022
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

Successfully merging this pull request may close these issues.

None yet

4 participants