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

How to make FirstPersonController not look to the ground at initial spawn? #489

Open
HenriWahl opened this issue Dec 6, 2022 · 5 comments

Comments

@HenriWahl
Copy link

Hi,

because this project looks so promising 😎 I try to fiddle around with it. I try to get the player's first person camera NOT to look at the ground when initially spawning but did not find a working solution in the documentation or web.

Can you give me a hint what else aside a player = FirstPersonController() has to be set to look along the X or Z axis and not downwards? I assumed look_at and look_at_2d to be a solution but did not manage to make it work.

Thanks for any hint!

@a2cy
Copy link
Contributor

a2cy commented Dec 7, 2022

you can try to set player.camera_pivot.rotation = (0,0,0)

@HenriWahl
Copy link
Author

@y2bad thanks but this makes no difference.

@ValleyDragon888
Copy link

Maybe change the camera rotation?

@HenriWahl
Copy link
Author

@ValleyDragon888 do you have an example how to do that?

@ValleyDragon888
Copy link

camera.rotation is a tuple of the x, y and z rotations of the camera.

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

3 participants