working on GPU but still some glitches on rotated bodies