Reputation: 1359
I have been banging my head against a brick wall for the past few hours.
I can't for the life of me get a mousejoint to work in the libgdx framework or java.
Could someone provide me with a quick example with sourcecode on how to use a mousejoint with libgdx? If not, with just Java?
Thanks
Upvotes: 2
Views: 4390
Reputation: 2220
You can download the whole libgdx trunk and take a look at the tests. For instance, check this one out:
https://github.com/libgdx/../tests/Box2DTest.java
It uses a mouse joint to pick and drag a body.
Upvotes: 3