Box2D Wrapper enhancement
GoogleCodeExporter opened this issue · comments
Google Code Exporter commented
I have libGDX 0.9.7 and I can't find the method
com.badlogic.gdx.physics.box2d.Contact#setTangentSpeed(float), which should be
available with newer Box2D versions.
A "proof" that it exists is this blog post:
http://www.iforce2d.net/b2dtut/conveyor-belts
He uses the method at line 25 in the 4th code block.
Here it is in the box2D source:
http://code.google.com/p/box2d/source/browse/trunk/Box2D/Box2D/Dynamics/Contacts
/b2Contact.h#139
In the blog post link you can see for what it can be useful.
For example making a wheel of a car have more grip than another wheel. You do
this by "faking" the grip and simply making the wheel push the car more than
usual, simply by changing the tangent speed in the Contact Listener's
preSolve(...) method.
Original issue reported on code.google.com by matheus....@gmail.com
on 29 Dec 2012 at 9:13
Google Code Exporter commented
Isn't this a question for the libGDX mailing list/forums? :)
Original comment by iforc...@gmail.com
on 16 Jan 2013 at 3:11
Google Code Exporter commented
Yup, not a Box2D issue.
Original comment by erinca...@gmail.com
on 27 Oct 2013 at 7:03
- Changed state: Invalid
Google Code Exporter commented
Yes, sorry, i don't know how I could mix this up. This wasn't intended. :)
Original comment by matheus....@gmail.com
on 27 Oct 2013 at 7:10