Skip to content
Snippets Groups Projects
Commit df5234b9 authored by stefan's avatar stefan
Browse files

dokk (the docking game):

 - reduced translation speed when using 3DNav

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@1995 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent 76fc5ef8
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,7 @@ class SpnavInputDevice(QtCore.QObject):
self.rot = True
self._lock_input = False
self._trans_factor = 0.5
self.score_scip = 0
def SetLevel(self, level):
......@@ -40,7 +41,7 @@ class SpnavInputDevice(QtCore.QObject):
ligand = self.level.ligand
transf = mol.Transform()
if(self.trans):
delta = geom.Vec3 (tx/480.0, ty/480.0, -tz/480.0)
delta = geom.Vec3 ((tx/480.0)*self._trans_factor, (ty/480.0)*self._trans_factor, (-tz/480.0)*self._trans_factor)
transf.SetTrans(delta)
if(self.rot):
rot=gfx.Scene().GetTransform().GetRot()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment