Added localToGlobal and globalToLocal for 3D object