/// <summary> /// Attaches this <see cref="GlobalObject" /> to the specified <paramref name="globalObject" />. /// </summary> /// <param name="globalObject">The global object.</param> /// <param name="offset">The offset.</param> /// <param name="rotation">The rotation.</param> /// <param name="syncRotation">if set to <c>true</c> synchronize rotation.</param> /// <exception cref="System.ArgumentNullException">globalObject</exception> public virtual void AttachTo(GlobalObject globalObject, Vector3 offset, Vector3 rotation, bool syncRotation = false) { if (globalObject == null) { throw new ArgumentNullException(nameof(globalObject)); } Internal.AttachObjectToObject(Id, globalObject.Id, offset.X, offset.Y, offset.Z, rotation.X, rotation.Y, rotation.Z, syncRotation); }