Joints only usable once

Posts regarding potential bugs, enhancement requests, and general feedback on use of dyn4j
andreas
Posts: 8
Joined: Mon Aug 01, 2016 6:04 am

Joints only usable once

Postby andreas » Mon May 01, 2017 9:22 am

Hello William,

The Method add (Joint joint) of the class World sets the inherited member variable world of the class Constraint to this world, but the method void remove(Joint joint) of the class World doesn't reset it to null.
Thus it's not possible to add the joint to another world or even the same one. Is this behaviour by design or is it a bug?

Best regards Andreas

William
Site Admin
Posts: 345
Joined: Sat Feb 06, 2010 10:23 pm

Re: Joints only usable once

Postby William » Mon May 01, 2017 9:56 pm

This looks like a bug to me. I've opened an issue on github for it https://github.com/wnbittle/dyn4j/issues/26.

Should have this fixed soon.

Thanks,
William

William
Site Admin
Posts: 345
Joined: Sat Feb 06, 2010 10:23 pm

Re: Joints only usable once

Postby William » Mon May 01, 2017 10:29 pm

I've released a new version, 3.2.4, that should fix this issue. Please report back if it does or doesn't.

Thanks,
William

andreas
Posts: 8
Joined: Mon Aug 01, 2016 6:04 am

Re: Joints only usable once

Postby andreas » Mon Jun 19, 2017 4:24 pm

Hi William,
sorry for the late answer.
I normally don't remove and readd Joints ... just ran into that iussue while I was debugging my application.
Nevertheless it seems to work now. :)

Thanks
Andreas

William
Site Admin
Posts: 345
Joined: Sat Feb 06, 2010 10:23 pm

Re: Joints only usable once

Postby William » Thu Jun 22, 2017 6:55 am

Not a problem. Thanks for reporting the problem and for reporting back that it is resolved.

William


Return to “Bugs, Enhancements, Feedback”

Who is online

Users browsing this forum: No registered users and 2 guests