import { eulerToQuaternion } from '@hiberworld/code-kit';
/**
 * SetRotation: set rotation of target node with euler rotation
 * @param  target: The node to be transformed
 * @param targetRotation: The euler rotation to be set
 */
export const setRotation = (target, targetRotation) => {
    target.transform = target.transform ?? {};
    target.transform.rot = eulerToQuaternion(targetRotation);
};
//# sourceMappingURL=setRotation.js.map