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

Initial camera transform values #18

Closed
piedoom opened this issue Aug 8, 2021 · 1 comment
Closed

Initial camera transform values #18

piedoom opened this issue Aug 8, 2021 · 1 comment

Comments

@piedoom
Copy link

piedoom commented Aug 8, 2021

I am trying to create a camera with a default position, for ease of use. I noticed that as soon as the camera is enabled, the initial set rotation is discarded. I suspect this has to do with something like pitch and yaw defaulting to 0 and resetting any rotations.

For reproducing, try the following:

// ... create the camera
camera.transform = Transform::from_xyz(10f32, 10f32, 10f32).looking_at(Vec3::ZERO, Vec3::Y);
@Gnurfos
Copy link

Gnurfos commented Jan 12, 2022

Pull request #15 fixes this

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