paiting entities - take rotations into account - closes #326