%% examples/surface-platforms.tex
%%
%% Demonstrates the three platform shapes from tikzphysics.surface
%% (physicsplatform-left, physicsplatform-right, physicsplatform-both).

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

\begin{document}

\begin{tikzpicture}
  %% platform with strip on left wall (e.g. floor meeting a left wall)
  \node[physicsplatform-left,
        physics platform width=5,
        physics platform depth=1]
    (PL) at (0,0) {};

  %% platform with strip on right wall, placed well clear of PL
  \node[physicsplatform-right,
        physics platform width=5,
        physics platform depth=1]
    (PR) at (0,-3) {};

  %% platform with strip on both walls (e.g. a chamber)
  \node[physicsplatform-both,
        physics platform width=5,
        physics platform depth=1]
    (PB) at (2.5,-6) {};

  %% label a few useful anchors on PL
  \fill (PL.floor-tl) circle (1pt) node[above left=-1pt] {\tiny floor-tl};
  \fill (PL.floor-tr) circle (1pt) node[above right=-1pt] {\tiny floor-tr};
  \fill (PL.wall-outer-mid) circle (1pt)
    node[left] {\tiny wall-outer-mid};

  %% and on PR
  \fill (PR.floor-tl) circle (1pt) node[above left=-1pt] {\tiny floor-tl};
  \fill (PR.wall-outer-mid) circle (1pt)
    node[right] {\tiny wall-outer-mid};

  %% and on PB
  \fill (PB.left-wall-outer-mid) circle (1pt)
    node[left] {\tiny left-wall-outer-mid};
  \fill (PB.right-wall-outer-mid) circle (1pt)
    node[right] {\tiny right-wall-outer-mid};
\end{tikzpicture}

\end{document}
