code: function _getLocalRotationFromWorldRotation(transform) {
    if(transform.parent === undefined)
      return transform.rotation;
    else
      return transform.parent.rotation.inverse().mul(transform.rotation);
  }
docs: Sets the local rotation of the transform according to the world rotation
  
  @param {Transform} transform