using resting body detection in phys2d

Hi!

I have hard time trying to set resting body detection on. I cannot access the method.

Netbeans complains, that method configureRestingBodyDetection is not public and cannot be accessed from outside the package.

How do get around this?

  • Sip

You should be using the method on World, though I’d warn you it’s not a well exercised feature:

http://www.cokeandcode.com/phys2d/source/javadoc/net/phys2d/raw/World.html#enableRestingBodyDetection(float,%20float,%20float)

Kev

Thank you! My app works perfectly (for) now 8)