Matthen

Model of Walking

Jun 4th, 2011
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. \[Theta][t_] := (Sin[t]/Sin[1]) (Pi/8);
  2. body[t_] := {(2 Sin[Pi/8]) Floor[t] + Sin[\[Theta][T[t]]],
  3. Cos[\[Theta][T[t]]]};
  4. T[t_] := (2 (t - Floor[t]) - 1);
  5. Manipulate[
  6. Show[Graphics[Join[
  7. {Thick, Line[{{2 Sin[Pi/8] Floor[t], 0}, body[t]}], Purple,
  8. PointSize[Large], Point[body[t]]}
  9. ], PlotRange -> {{-1, 4}, {0, 1.2}}],
  10. ParametricPlot[body[\[Tau]], {\[Tau], -10^-5, t},
  11. PlotStyle -> Directive[Darker@Orange, Thick]]]
  12. , {t, 0, 4.99}]
Add Comment
Please, Sign In to add comment