cenkguzelis / jbox2d

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

Error in ConstantVolumeJoint #48

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Try the BlobJoint demo

What version of the product are you using?
2.2.1.2

Please provide any additional information below.
In the ConstantVolumeJoint class:
In the getBodyArea function:
Replace:
    float area = 0.0f;
    for (int i = 0; i < bodies.length - 1; ++i) {
By:
    float area = 0.0f;
    for (int i = 0; i < bodies.length; ++i) {

Original issue reported on code.google.com by cortobass on 27 May 2013 at 6:37

GoogleCodeExporter commented 9 years ago
good catch!  I'll fix that

Original comment by danielmu...@gmail.com on 29 May 2013 at 10:59

GoogleCodeExporter commented 9 years ago

Original comment by toucansa...@gmail.com on 10 Jun 2013 at 6:40