src/Transform.js
function _getWorldPositionFromLocalPosition(transform) {
  if (transform.parent === undefined)
    return transform.localPosition;
  else
    return transform.parent.position.add(transform.parent.rotation.mulVector3(transform.localPosition));
}
function _getWorldPositionFromLocalPosition(transform) {
  if (transform.parent === undefined)
    return transform.localPosition;
  else
    return transform.parent.position.add(transform.parent.rotation.mulVector3(transform.localPosition));
}
function _getWorldPositionFromLocalPosition ( transform ) { if ( transform . parent === undefined ) return transform . localPosition ; else return transform . parent . position . add ( transform . parent . rotation . mulVector3 ( transform . localPosition ) ) ; }
Sets the world position of the transform according to the local position

@param {Transform} transform
Sets the world position of the transform according to the local position