Re: LUA keypad puzzle help
Status: Alpha
Brought to you by:
cwalther
From: Christian W. <cwa...@gm...> - 2008-05-28 17:39:58
|
Aidan Gauland wrote: > I would like to say that I find the Pipmak demo to be a good demonstration of > Pipmak's various features, but I wasn't really able to model much of my code > after the code in the demo project, because some of the more complex code was > lacking comments a bit, and, for example, in the code for the lever that > controls the bridge, there were a few magic numbers that made it too confusing. OK, I can see that this script could use some comments. And others too, probably. I'll see about improving that. Thanks for the feedback! By "magic numbers", I assume you mean how I modeled the path of the lever handle using y as a quadratic function of x, and the bridgepos parameter corresponding to the handle position as another quadratic function of x. The coefficients there were obtained by fitting a quadratic polynomial to the (approximately measured) "best" handle position for each intermediate step. There are a lot of other magic numbers in the script that just depend on where things are located on the panorama. -Christian |