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

Character-tracking entity for easier camera controller integration #60

Open
idanarye opened this issue Sep 4, 2024 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@idanarye
Copy link
Owner

idanarye commented Sep 4, 2024

If a camera tries to track the player directly, the tiny jittering of the floating capsule model will get amplified to the point of noticeablity when they get transferred to the camera. Smoothing can help, but the third party camera plugin may not support smoothing.

Tnua can and should help with that. It can provide a mechanism for adding a third entity that track the character but uses knowledge from Tnua to overcome the jittering and stabilize it (e.g. - keep at ground height when jumping). The camera (and maybe other things?) can then track that entity instead of the character entity directly.

@idanarye idanarye added the enhancement New feature or request label Sep 4, 2024
@thomasza92
Copy link

Great work on this! I am new to using Bevy and this has been a great way for me to get a good character controller up and running. I would love for examples on how to use different cameras and having a dolly type camera working with Tnua in the future would be awesome!

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

No branches or pull requests

2 participants