how are object positions calculated?