From: Richard E. <red...@ee...> - 2009-05-20 20:59:20
|
Richard Vaughan wrote: > On Tue, May 19, 2009 at 3:00 PM, Richard Edwards <red...@ee...> wrote: > >> I don't know of a pushable box in Stage-2.0, but I made a simulated ball >> for Stage-3.0 via the new control interface. If you or anyone is >> interested in the code, I can clean it up and send it to them. (It is >> possible to create pushable boxes for Stage-3.0) >> > > Hi Richard, > > I'm interested to see how you did this. > > cheers, > Richard V > > > I haven't fully documented everything, but the code isn't very complex. However, in order to make everything work, the control module inherits from model. So I had to modify my stage-3.0 installation model source code to not draw the default box. (I tried several different approaches to just remove the default added block from the glist, but all failed). Therefore, comment out the line this->AddBlockRect in model.cc on line 245. http://www.cs.utk.edu/~redwar15/ball_ctrl.tar.gz Thank You, Richard Edwards |