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

What's the best way to offset the camera to the side #100

Open
hichemfantar opened this issue Sep 17, 2024 · 1 comment
Open

What's the best way to offset the camera to the side #100

hichemfantar opened this issue Sep 17, 2024 · 1 comment

Comments

@hichemfantar
Copy link

hichemfantar commented Sep 17, 2024

i'm trying to have an aim crosshair but that doen't work when the character in the middle of the screen.

what's the recommended approach to push the camera to the side in ecctrl.

example:

maxresdefault

edit: i managed to get a close result by setting camTargetPos={{ x: 1, y: 1, z: 0 }} but it's not consistent when i move the camera.

example:

2024-09-17.22-59-37.mp4

video example of the desired camera behavior while rotating

2024-09-18.01-16-29.mp4
@hichemfantar hichemfantar changed the title What's the best way to offest the character to the side What's the best way to offest the camera to the side Sep 17, 2024
@ErdongChen-Andrew
Copy link
Member

Currently it only works with the world axis. Will fix this in a future version.

@hichemfantar hichemfantar changed the title What's the best way to offest the camera to the side What's the best way to offset the camera to the side Sep 19, 2024
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