Added rotation in D space

Still needs the model position.