Weld joints with Rubeloader and libgdx

General discussion about the R.U.B.E editor
Post Reply
fredells
Posts: 10
Joined: Sat Jan 16, 2016 10:16 pm

Weld joints with Rubeloader and libgdx

Post by fredells »

Hi, I'm creating a game with libgdx and Rubeloader (https://github.com/tescott/RubeLoader)

Weld joints don't seem to be compatible. Has anyone written or found a workaround?

Is there any way to recreate the functionality of a weld joint. I tried a revolute joint + motor joint but it doesn't react similarly enough.

Cheers

Fred
iforce2d
Site Admin
Posts: 861
Joined: Sat Dec 22, 2012 7:20 pm

Re: Weld joints with Rubeloader and libgdx

Post by iforce2d »

Perhaps you could give a little more info about what you mean by 'not compatible'. I didn't make that loader myself, but it looks like the author has intended for weld joints to be a part of it (at least they are mentioned here: https://github.com/tescott/RubeLoader/b ... aults.java)
fredells
Posts: 10
Joined: Sat Jan 16, 2016 10:16 pm

Re: Weld joints with Rubeloader and libgdx

Post by fredells »

Yeah I was wrong. Rubeloader is "compatible" by which I mean that its joint serializer properly casts and handles weld joints as weld joints. Which leaves me stumped.

Basically what is happening is that my weld joints are completely stiff in game. The frequency and damping values are reading properly. And no matter what I change them to the joints wont budge.

Thanks in advance
iforce2d
Site Admin
Posts: 861
Joined: Sat Dec 22, 2012 7:20 pm

Re: Weld joints with Rubeloader and libgdx

Post by iforce2d »

Do you get the expected result if you create the same joint manually, ie. just coding everything without RUBE?
Post Reply