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