diff --git a/examples/dokk/spnav_input.py b/examples/dokk/spnav_input.py index a016a6ffb812d3d2b06452a5916ce8f10e7abd44..fe463ecc9da4371d1f1794f7df4293700982b18f 100644 --- a/examples/dokk/spnav_input.py +++ b/examples/dokk/spnav_input.py @@ -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()