Allow the camera to get closer to objects

This commit is contained in:
Alexander Bock
2016-01-31 16:47:36 +01:00
parent f1437c7183
commit abffcf4175

View File

@@ -395,7 +395,7 @@ void InteractionHandler::orbit(const float &dx, const float &dy, const float &dz
//new camera position
relative = origin + relative_focus_coordinate;
float bounds = 2.f * (_focusNode ? _focusNode->boundingSphere().lengthf() : 0.f);
float bounds = 2.f * (_focusNode ? _focusNode->boundingSphere().lengthf() : 0.f) / 10.f;
psc target = relative + relative_focus_coordinate * dist;
//don't fly into objects