paiting entities - take rotations into account - closes #326

fixed