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
FPS cam #1390
base: master
Are you sure you want to change the base?
FPS cam #1390
Conversation
some code rearrangment
The teapot example was supposed to have an FPS camera. It's not totally implemented because I was lazy, but that was the project initially. Sorry if that wastes your work, but what about modifying |
I don't think it'd be wasted work, because i can just rewrite it to fit in |
cam | ||
} | ||
|
||
pub fn at(pos: [f32; 3], target: [f32; 3]) -> CameraState { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it's sensible to use nalgebra
or similar for the examples?
Code is mostly taken from tutorial-12.rs with added Camera
Controlled by Mouse and WASD. Up is Space, Down is LShift, Cam can be controlled by Arrowkeys, too