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

Add a target state to the camera. Bug fixes. #597

Merged
merged 2 commits into from
Oct 23, 2018

Conversation

chevtche
Copy link
Contributor

No description provided.

@chevtche chevtche changed the title Added a target state to the camera. Bug fixes. Add a target state to the camera. Bug fixes. Oct 22, 2018
@@ -63,14 +63,18 @@ void FlyingModeManipulator::dragLeft(const Vector2i& to, const Vector2i& from)

void FlyingModeManipulator::dragRight(const Vector2i& to, const Vector2i& from)
{
const float distance = -(to.y() - from.y()) * getMotionSpeed();
const float distance = -(to.y() - from.y()) *
DEFAULT_MOUSE_MOTION_SPEED_MULTIPLIER *
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like getMotionSpeed and getRotationSpeed should return smaller values. I would do that instead of adding this multiplication by DEFAULT_MOUSE_... everywhere.

I have to test myself how your manipulator works now before judging if this is an improvement.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No you can't. If you do so keyboard mouvements are to slow. Believe me, it's an improvement :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find the rotation quite slow and panning too fast. In any case, we won't use this manipulator so much so feel free to leave it as it is.

@chevtche chevtche merged commit 0128228 into BlueBrain:master Oct 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants