Change default direction of snapshot, so robot looks in the same direction as our beautifull logo; the ultibot

This commit is contained in:
Jaime van Kessel 2018-03-13 16:46:02 +01:00
parent f36e34a7c5
commit 40d300f5cc

View file

@ -66,7 +66,7 @@ class Snapshot:
size = max(bbox.width, bbox.height, bbox.depth * 0.5)
# Looking from this direction (x, y, z) in OGL coordinates
looking_from_offset = Vector(1, 1, 2)
looking_from_offset = Vector(1, 1, -2)
if size > 0:
# determine the watch distance depending on the size
looking_from_offset = looking_from_offset * size * 1.3