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
Heading Tilt #1131
Heading Tilt #1131
Conversation
var tilt = this.getTilt(); | ||
angle = angle - tilt; | ||
|
||
/* |
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.
Remove commented out code.
@bagnell this is good with me, but do you want to move the entire camera to get/set properties instead of functions since these are not performance critical? Or perhaps I should ask: how much of the camera is called more than once per frame? Perhaps some getters for automatic uniforms? Maybe we could provide fast accessors for those until browsers get their act together. |
@emackey just branch off this in the meantime. Why bring something into master that we might change in a day or two? |
@pjcozzi This is ready for another review. I changed the camera to use get/set properties. |
Looks good. Update the camera tutorial if need be. |
Added
getHeading
,setHeading
,getTilt
andsetTilt
toCameraController
for #977 and #1111.Roll was unneeded. It can be done with:
camera.controller.look(camera.direction, angle);