All pastes #459486 Raw Edit

Unnamed

public text v1 · immutable
#459486 ·published 2007-04-26 14:25 UTC
rendered paste body
Hi,

Recently, I started taking a look at wobbly's source (I was interested in it's physics... ;-))
I noticed that GRID_WIDTH and GRID_HEIGHT were defined to be 4, and I wanted to see how the physics look like with grid sizes that aren't 4x4.
I changed the defines to my new grid size, but unfortunately it didn't work.
I investigated this "bug" (it's not exactly a bug because users can't change the grid size), and found out the bezier patch was written for specifically 4x4 grids.
The attached patch makes the bezier patch to work on every grid size defined (grid sizes could even be an option, although i think 4x4 indeed gives the best effect).

Thanks,
Roi.