Boxboy can run, jump, grab hold of things, balace on top of rolling balls and so much more, which is really amazing with him being only a virtual box.
To figure out this madness, I chased him down and delicately split him apart lengthwise, using CTRL-X to cut, and after digging deep into his physical anatomy this is what I found:
First of all, all he really is a box and a ball, which are connected together by a Motor Joint.
The motor in this Joint is switched on whenever he wants to move, and will roll him over the ground at a constant speed. Like a one wheeled car.
To stop Boxboy falling over at every bump is a Fixed Angle Joint, which keeps his body at a specific angle. As he rolls along over the ground, this angle is adjusted to the angle of whatever he is standing on, and so prevents him from standing unrealistically upright on a slope.
To detect the angle of whatever he is standing on, and also to detect whether or not he is actually standing on anything, are 3 short Rays. These begin just under his Rectangle, and return the distance to the ground and the angle of it.
When Boxboy is standing still an Angle Joint clamps down on both his body and his circle, thus preventing him from rolling away out of control down a slope. Like what a handbrake does.
And thats it folks! I hope you learned somoething!
Sadly though, what I learnt was that I couldn’t put him back together again, but I should be able to figure that out with the next one…Other