Added some "Maya Style" Navigation control:
# mousePressEvent = True
# mouseReleaseEvent = False
# Rotate camera
camera_rotation[0] += delta.y() * 0.2
camera_rotation[1] += delta.x() * 0.2
# Pan camera
camera_translation[0] += delta.x() * 0.01
camera_translation[1] -= delta.y() * 0.01
# Zoom camera
camera_translation[2] += delta.y() * 0.05
No comments:
Post a Comment