logic, quaternions and positions working