Skip to content

Conversation

@vincentfretin
Copy link
Contributor

This fixes issue #3051

@vincentfretin
Copy link
Contributor Author

If el.getAttribute('camera').userHeight returned 0, getUserHeight() always returned DEFAULT_CAMERA_HEIGHT instead of 0.

<a-entity camera look-controls /> now renders again userHeight to 0 like it's supposed to.

@vincentfretin
Copy link
Contributor Author

But maybe this fix introduces a regression for #3000, @olga-microsoft can you please verify?

@ngokevin ngokevin merged commit def0b8e into aframevr:master Oct 2, 2017
@ngokevin
Copy link
Member

ngokevin commented Oct 2, 2017

thanks!

@vincentfretin
Copy link
Contributor Author

Ah, I just looked at it again. It doesn't fix the issue with <a-camera /> which set camera.userHeight to 1.6 by default". I still have an increasing offset. This fixes only the case where you really want a camera on the floor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants