Sets the rotation of the rigid body.