cenkguzelis / jbox2d

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

LineJoint motor appears to be broken #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

The Java version of the program shows the broken behaviour. The C++ version 
shows the expected behaviour. Apparently, the WheelJoint in the C++ is just
the LineJoint renamed.

What is the expected output? What do you see instead?

The "unicycle" structure should drive to the left hand side of the screen as 
the joint motor causes the wheel to rotate.

What version of the product are you using? On what operating system?

jbox2d 2.1.2
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.1) (ArchLinux-6.b24_1.11.1-3-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

box2d 2.2.1
Arch Linux x86_64

Please provide any additional information below.

See the attached programs.

Original issue reported on code.google.com by jack.wea...@gmail.com on 5 Apr 2012 at 10:51

Attachments:

GoogleCodeExporter commented 9 years ago
I have a patch here that attempts to drag in the latest WheelJoint from the C++ 
version. The results are not quite equivalent, however, with the above two 
programs. The Java version now has a working motor, but the upper body seems to 
have rather a lot of "spring" as if it is on very soft suspension. Perhaps 
someone familar with the jbox2d implementation could take a look?

The patch applies to SVN trunk 597.

Original comment by jack.wea...@gmail.com on 6 Apr 2012 at 12:22

Attachments:

GoogleCodeExporter commented 9 years ago
(Updated java program as example)

Original comment by jack.wea...@gmail.com on 6 Apr 2012 at 1:10

Attachments:

GoogleCodeExporter commented 9 years ago
The line joint is from the 2.1.2 version of Box2d.  If they're the same joint, 
what behavior is it not exhibiting that the patch is changing?

Original comment by toucansa...@gmail.com on 7 Apr 2012 at 4:17

GoogleCodeExporter commented 9 years ago
Wheel joint added in trunk

Original comment by toucansa...@gmail.com on 27 Jan 2013 at 8:01

GoogleCodeExporter commented 9 years ago

Original comment by toucansa...@gmail.com on 27 Jan 2013 at 8:01

GoogleCodeExporter commented 9 years ago
Done with wheel joint

Original comment by danielmu...@gmail.com on 6 May 2013 at 5:27