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

Make the noFly param in FirstPersonControls work by constraining the Y axis #2043

Closed
wants to merge 1 commit into from
Closed

Conversation

mrspeaker
Copy link

I needed this for my game, so the FPS controller didn't fly above/below the ground. There was already a noFly parameter, but it wasn't used. My (perhaps naive) solution was to store the original camera position and reset the Y at the end of the update function.

@mrdoob
Copy link
Owner

mrdoob commented Aug 5, 2012

I'm afraid I'm opting for removing the parameter altogether.

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

Successfully merging this pull request may close these issues.

2 participants