dewijones92
dewijones92

Reputation: 1359

Can someone give me an example of how a mousejoint works in libgdx?

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

Answers (1)

aacotroneo
aacotroneo

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

Related Questions