# \[GIF\] Walking cube

**URL:** <https://community.wolfram.com/t/gif-walking-cube/8218>\
**Category:** Staff Picks\
**Tags:** computational-arts, geometry, graphics-and-visualization, staff-pick\
**Created:** [March 25, 2016, 10:38pm UTC](https://community.wolfram.com/t/gif-walking-cube/8218 "2016-03-25T22:38:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sghuisman](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/sghuisman/32/27850_2.png) [@sghuisman](https://community.wolfram.com/u/sghuisman)\
**Post date:** [March 25, 2016, 10:38pm UTC](https://community.wolfram.com/t/gif-walking-cube/8218/1 "2016-03-25T22:38:16Z")

</div>

![7677out.gif](https://global.discourse-cdn.com/wolfram/original/3X/3/c/3c16be36b64affa60a0d5fbe49cf2c10300e4a69.gif)

Just a small gif of a ‘walking’ cube:

```
MakeCube[fr_]:=Module[{\[Alpha],\[Beta],vp},
    {\[Alpha],\[Beta]}=If[fr<0.5,{fr \[Pi],0},{\[Pi]/2,(fr-0.5)\[Pi]}];
    vp={0.45 +fr,1.05 -fr,0};
    Graphics3D[{EdgeForm[],Gray,Rotate[Rotate[Cuboid[],\[Alpha],{0,1,0},{1,0,0}],\[Beta],{1,0,0},{0,0,0}]},
    ViewVector->{vp+5{1,-1,1.5},vp},ViewAngle->25*Degree,Lighting->"Neutral",
    Boxed->False,Background->LightGray,ImageSize->600{1,1}]
]
Manipulate[MakeCube[fr],{fr,0,1}]

```

---

<div class="post-metadata">

**Author:** ![wolframcommunity](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/wolframcommunity/32/8335_2.png) [@wolframcommunity](https://community.wolfram.com/u/wolframcommunity)\
**Post date:** [March 29, 2016, 3:34pm UTC](https://community.wolfram.com/t/gif-walking-cube/8218/2 "2016-03-29T15:34:11Z")

</div>

![2015-11-02_10-07-11.png](https://global.discourse-cdn.com/wolfram/original/3X/5/0/50e59c9ead62f729e7130d3ea1482555a75602b6.png)

- another post of yours has been selected for the [Staff Picks](http://community.wolfram.com/content?curTag=staff+picks) group, congratulations !

We are happy to see you at the tops of the [“Featured Contributor” board](http://wolfr.am/featured). Thank you for your wonderful contributions, and please keep them coming!

---

<div class="post-metadata">

**Author:** ![kubapod](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/kubapod/32/18662_2.png) [@kubapod](https://community.wolfram.com/u/kubapod)\
**Post date:** [April 21, 2016, 9:30am UTC](https://community.wolfram.com/t/gif-walking-cube/8218/3 "2016-04-21T09:30:14Z")

</div>

Here’s related topic on MMA.SE: [Random polyhedra walk](http://mathematica.stackexchange.com/q/79099/5478)

![PR5O8.gif](https://global.discourse-cdn.com/wolfram/original/3X/b/8/b89a3a45f6cbbf10bea957a7bf2c95b47fc964cb.gif)

---

<div class="post-metadata">

**Author:** ![sghuisman](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/sghuisman/32/27850_2.png) [@sghuisman](https://community.wolfram.com/u/sghuisman)\
**Post date:** [April 21, 2016, 9:35am UTC](https://community.wolfram.com/t/gif-walking-cube/8218/4 "2016-04-21T09:35:17Z")

</div>

Wow! that is pretty cool indeed! Thanks for sharing!
