%% mechanics-pulley-bent-platform.tex
%% A block follows the raised side of one continuous bent platform.

\documentclass[tikz,border=5mm]{standalone}
\usepackage{tikz}
\usetikzlibrary{tikzphysics}

\begin{document}
\begin{tikzpicture}
  \node[platform-right,
        platform width=5.2,
        platform depth=2.2,
        strip width=0.28,
        wall angle=42,
        anchor=floor-top-mid] (S) at (0,0) {};

  \node[block, block width=0.85, block height=1,
        rotate=42, anchor=south]
    (B) at (S.wall-outer-42) {$m_1$};

  %% The pulley centre is exactly the top endpoint of the bent surface. The
  %% default 1cm pulley diameter matches the 1cm block height, so the string
  %% from B.east remains parallel to the surface and exactly tangent.
  \node[pulley] (P) at (S.wall-outer-100) {};

  \node[block, minimum width=8mm, minimum height=1cm]
    (H) at ($(P.east)+(0,-2.4)$) {$m_2$};

  \physicsstringoverpulley{B.east}{P}{H.north}
\end{tikzpicture}
\end{document}
