%% examples/debug-demo.tex
%%
%% Demonstrates the physics debug/... family of keys.
%% The key is cascadable: works at tikzpicture, scope, or node level.
%%
%%   physics debug/anchors = true    numbered dots + legend table
%%   physics debug/keys    = true    accepted keys box
%%   physics debug/all     = true    both of the above

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

\begin{document}

%% Picture-wide: every node gets anchor overlay
\begin{tikzpicture}%[physics debug/anchors=true]
  \node[physicswedge, physics wedge angle=30, physics wedge width=4] at (0,0) {};
  \node[physicsplatform-left, physics platform width=3, physics platform depth=1.5]
    at (7,0) {};
\end{tikzpicture}

\vspace{5mm}

%% Per-node: only the second wedge shows debug
\begin{tikzpicture}
  \node[physicswedge, physics wedge angle=30, physics wedge width=4] at (0,0) {};
  \node[physicswedge, physics wedge angle=45, physics wedge right angle at=top,
        physics wedge width=4, physics debug/anchors=true] at (6,0) {};
\end{tikzpicture}

\vspace{5mm}

%% physics debug/all = anchors + keys
\begin{tikzpicture}%[physics debug/all=true]
  \node[physicspulley, physics pulley diameter=1.5] at (0,0) {};
  \node[physicsblock, physics block width=1.5, physics block height=1] at (6,0) {};
  \node[physicswedge, physics wedge angle=30, physics wedge width=4] at (13,0) {};
\end{tikzpicture}

\end{document}
