Roxside / jbox2d

Automatically exported from code.google.com/p/jbox2d
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Enhancement Request (and Patch) - customize restitution mixing #35

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It would be useful for me to be able to customize the way that the restitution 
constants are mixed between two colliding bodies.  I noted a TODO to similar 
effect in Settings.java and so created a patch for your consideration.

The attached patch would seem to allow this type of customization (as well as 
the same for friction since it was very similar).

Original issue reported on code.google.com by mthoma...@gmail.com on 20 Apr 2012 at 8:13

Attachments:

GoogleCodeExporter commented 9 years ago
Looks good.  I'll integrate it unless it has a big performance hit, in which 
case friction + restitution mixing should be custom w/ a local checkout of the 
source

Original comment by toucansa...@gmail.com on 25 Apr 2012 at 7:50