meiyunyang / chipmunk-physics

Automatically exported from code.google.com/p/chipmunk-physics
MIT License
0 stars 0 forks source link

Elasticiy is broken in v4.1.0 #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
After upgrading from v4.0.2 to v4.1.0 elasticity stopped working.  After
some research it turned out that following the call to cpSpaceNew I had to
add this line to restore the original behavior:

    space->elasticIterations = space->iterations;

I suggest that by default cpSpaceNew should set both of these iteration
values to the same original default of 10 and a new API be provided to
create a space with alternate values.  For example:

         cpSpaceNewWithIterations ( int iterations, int elasticIterations)

Original issue reported on code.google.com by adm...@burningthumb.com on 7 Oct 2008 at 6:26

GoogleCodeExporter commented 8 years ago
In the trunk and hopefully soon to be released version of Chipmunk it defaults 
to the old unstable stacking 
behavior for elasticity when elastic iterations are disabled. Sorry it took me 
so long to get to this as I had not set 
my preferences to receive notifications of issues being added here.

Original comment by slemb...@gmail.com on 27 Aug 2009 at 12:51