teaching machines

Magnets – gutzmejr

March 19, 2015 by . Filed under cs455, postmortems, spring 2015.

I first wanted to get a rectangle appearing on the screen, then duplicate it, add the poles and interaction, and finally add the flipping functionality. I ended up doing the last two steps the other way around, with adding color thrown in there somewhere. The biggest obstacles besides initially getting the rectangle to appear was figuring out how the matrix transforms worked. Once that made sense to me (and I was able to render the poles on top of the magnet body and not underneath), things started falling into place.

 

magnets