You don't need to change any axis to do  a pivoting door. You need to create two parts of the door. The first will have only the dimensions to be the "axis".The second will be the "real" door. Linking this one with the first, you can add this script to the object:<div>
<br><div><div> integer open;</div><div> rotation rotActual ;</div><div> rotation rot ;</div><div> vector iniPos;</div><div><br></div><div> default{</div><div> </div><div> state_entry(){</div><div>  </div><div>   iniPos=llGetPos();</div>
<div>  </div><div>   if(iniPos.y<140){ // y of the door closed</div><div>     open = 0;</div><div>   }</div><div>  else open=1;</div><div>  </div><div> }</div><div> touch_start(integer i){</div><div>   if(open==0){</div>
<div>  </div><div>   rotActual = llGetRot();</div><div>   rot = llEuler2Rot(<0,0,-90>*DEG_TO_RAD);</div><div>   llSetRot(rotActual*rot);</div><div>   llSetPos(llGetPos());</div><div>   open=1;</div><div>   iniPos=llGetPos();</div>
<div>   </div><div> }</div><div>  else{</div><div>  </div><div>  rotActual = llGetRot();</div><div>   rot = llEuler2Rot(<0,0, 90>*DEG_TO_RAD);</div><div>  llSetRot(rotActual*rot);</div><div>   llSetPos(llGetPos());</div>
<div>  open=0;</div><div>  iniPos=llGetPos();</div><div>   //llOwnerSay((string)iniPos.y);</div><div>  }</div><div> }</div><div>}</div><div><br></div><div>You can see this solution working on my sim at  <a href="http://200.207.267.61:9000">http://200.207.267.61:9000</a>, using the userID: Guest One, pw:123456</div>
<div>There are some other scripts there. </div></div></div>