%% 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[physicsplatform-right,
        physics platform width=5.2,
        physics platform depth=2.2,
        physics strip width=0.28,
        physics wall angle=42,
        anchor=floor-top-mid] (S) at (0,0) {};

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

  %% Move a short distance beyond the surface, then outward along its normal.
  %% 0.025cm = half the block height minus the pulley radius; the parallel
  %% string therefore touches and passes over the pulley's upper rim.
  \coordinate (mount) at ($(S.wall-outer-100)+(42:0.5)+(132:0.025)$);
  \draw (S.wall-outer-100) -- (mount);
  \node[physicspulley, physics pulley diameter=0.7] (P) at (mount) {};

  \node[physicsblock, physics block width=0.75, physics block height=0.75]
    (H) at ($(P.east)+(0,-2.2)$) {$m_2$};

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